fix minor bug with the undo/redo of conductor text item

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2302 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-06-19 21:40:28 +00:00
parent c4bcc6fed7
commit 9f07f5ad1d
2 changed files with 15 additions and 21 deletions

View File

@@ -323,7 +323,8 @@ class RotateElementsCommand : public QUndoCommand {
QList<DiagramTextItem *> texts_to_rotate;
/// angle of rotation to be applied to text items
qreal applied_rotation_angle_;
bool previous_rotate_by_user_;
/// previous state of each conductor text item
QHash<ConductorTextItem *, bool> previous_rotate_by_user_;
};
/**
@@ -353,7 +354,8 @@ class RotateTextsCommand : public QUndoCommand {
QHash<DiagramTextItem *, double> texts_to_rotate;
/// angle of rotation of all text items after the command
double applied_rotation_angle_;
bool previous_rotate_by_user_;
/// previous state of each conductor text item
QHash<ConductorTextItem *, bool> previous_rotate_by_user_;
};
/**