Correction d'un bug lors de l'enregistrement d'un champ de texte sur element avec plusieurs lignes

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@269 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2008-01-11 20:01:27 +00:00
parent d2c5fbd8c2
commit d560883c6b
3 changed files with 21 additions and 2 deletions

View File

@@ -420,6 +420,7 @@ bool CustomElement::parseInput(QDomElement &e) {
ElementTextItem *eti = new ElementTextItem(e.attribute("text"), this);
eti -> setFont(QFont(QETApp::diagramTextsFont(), size));
eti -> setPos(pos_x, pos_y);
eti -> setOriginalPos(QPointF(pos_x, pos_y));
if (e.attribute("rotate") == "true") eti -> setFollowParentRotations(true);
return(true);
}