[qet] [2741] bugfix, rotate text crash qet |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2741
Author: blacksun
Date: 2014-01-13 21:26:04 +0100 (Mon, 13 Jan 2014)
Log Message:
-----------
bugfix, rotate text crash qet
Modified Paths:
--------------
trunk/sources/diagramcommands.cpp
Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp 2014-01-13 20:11:04 UTC (rev 2740)
+++ trunk/sources/diagramcommands.cpp 2014-01-13 20:26:04 UTC (rev 2741)
@@ -734,7 +734,8 @@
*/
RotateTextsCommand::RotateTextsCommand(const QList<DiagramTextItem *> &texts, double applied_rotation, QUndoCommand *parent) :
QUndoCommand(parent),
- applied_rotation_angle_(applied_rotation)
+ applied_rotation_angle_(applied_rotation),
+ diagram(texts.first()->diagram())
{
foreach(DiagramTextItem *text, texts) {
texts_to_rotate.insert(text, text -> rotationAngle());