mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
bug fix: QET crash when rotate image or text
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2721 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -656,9 +656,12 @@ RotateElementsCommand::RotateElementsCommand(const QList<Element *> &elements, c
|
||||
elements_to_rotate(elements),
|
||||
texts_to_rotate(texts),
|
||||
images_to_rotate(images),
|
||||
applied_rotation_angle_(90.0),
|
||||
diagram (elements.first()->diagram())
|
||||
applied_rotation_angle_(90.0)
|
||||
{
|
||||
if(elements_to_rotate.size()) diagram = elements_to_rotate.first()->diagram();
|
||||
else if (texts_to_rotate.size()) diagram = texts_to_rotate.first()->diagram();
|
||||
else if (images_to_rotate.size()) diagram = images_to_rotate.first()->diagram();
|
||||
|
||||
setText(
|
||||
QString(
|
||||
QObject::tr(
|
||||
|
||||
Reference in New Issue
Block a user