mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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_;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user