From 6f01fce254a0b89d8e587402e6a962733881e3c9 Mon Sep 17 00:00:00 2001 From: blacksun Date: Mon, 13 Jan 2014 20:26:04 +0000 Subject: [PATCH] bugfix, rotate text crash qet git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2741 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramcommands.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/diagramcommands.cpp b/sources/diagramcommands.cpp index 6c4b54a74..cd02637f1 100644 --- a/sources/diagramcommands.cpp +++ b/sources/diagramcommands.cpp @@ -734,7 +734,8 @@ RotateTextsCommand::RotateTextsCommand(const QHash &p */ RotateTextsCommand::RotateTextsCommand(const QList &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());