mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-20 19:19:58 +01:00
Fix bugtracker report N° 119 : Variable %F (of several element Xref) is not always up to date when the corresponding value of titleblock change.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4906 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -54,11 +54,13 @@ QRectF CommentItem::boundingRect() const {
|
||||
* @brief CommentItem::autoPos
|
||||
* Adjust the position of this item.
|
||||
*/
|
||||
void CommentItem::autoPos() {
|
||||
void CommentItem::autoPos()
|
||||
{
|
||||
if (m_text_parent)
|
||||
centerToParentBottom(this);
|
||||
else {
|
||||
XRefProperties xrp = m_element->diagram()->defaultXRefProperties(m_element->kindInformations()["type"].toString());
|
||||
else
|
||||
{
|
||||
XRefProperties xrp = m_element->diagram()->project()->defaultXRefProperties(m_element->kindInformations()["type"].toString());
|
||||
centerToBottomDiagram(this, m_element, xrp.offset());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user