mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
bugfix, rotate text crash qet
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2741 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -734,7 +734,8 @@ RotateTextsCommand::RotateTextsCommand(const QHash<DiagramTextItem *, double> &p
|
|||||||
*/
|
*/
|
||||||
RotateTextsCommand::RotateTextsCommand(const QList<DiagramTextItem *> &texts, double applied_rotation, QUndoCommand *parent) :
|
RotateTextsCommand::RotateTextsCommand(const QList<DiagramTextItem *> &texts, double applied_rotation, QUndoCommand *parent) :
|
||||||
QUndoCommand(parent),
|
QUndoCommand(parent),
|
||||||
applied_rotation_angle_(applied_rotation)
|
applied_rotation_angle_(applied_rotation),
|
||||||
|
diagram(texts.first()->diagram())
|
||||||
{
|
{
|
||||||
foreach(DiagramTextItem *text, texts) {
|
foreach(DiagramTextItem *text, texts) {
|
||||||
texts_to_rotate.insert(text, text -> rotationAngle());
|
texts_to_rotate.insert(text, text -> rotationAngle());
|
||||||
|
|||||||
Reference in New Issue
Block a user