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());