[qet] qet/qet: [5739] fix crash

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5739
Author:   blacksun
Date:     2019-02-20 21:47:40 +0100 (Wed, 20 Feb 2019)
Log Message:
-----------
fix crash

Modified Paths:
--------------
    trunk/sources/ui/inditextpropertieswidget.cpp

Modified: trunk/sources/ui/inditextpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/inditextpropertieswidget.cpp	2019-02-20 20:36:56 UTC (rev 5738)
+++ trunk/sources/ui/inditextpropertieswidget.cpp	2019-02-20 20:47:40 UTC (rev 5739)
@@ -227,7 +227,7 @@
 						if (!parent_undo) {
 							parent_undo = new QUndoCommand(tr("Pivoter plusieurs champs texte"));
 						}
-						QPropertyUndoCommand *qpuc = new QPropertyUndoCommand(piti.data(), "rotation", QVariant(m_text->rotation()), QVariant(ui->m_angle_sb->value()), parent_undo);
+						QPropertyUndoCommand *qpuc = new QPropertyUndoCommand(piti.data(), "rotation", QVariant(piti->rotation()), QVariant(ui->m_angle_sb->value()), parent_undo);
 						qpuc->setAnimated(true, false);
 					}
 				}
@@ -242,7 +242,7 @@
 						if (!parent_undo) {
 							parent_undo = new QUndoCommand(tr("Modifier la taille de plusieurs champs texte"));
 						}
-						QPropertyUndoCommand *qpuc = new QPropertyUndoCommand(piti.data(), "fontSize", m_text->fontSize(), ui->m_size_sb->value(), parent_undo);
+						QPropertyUndoCommand *qpuc = new QPropertyUndoCommand(piti.data(), "fontSize", QVariant(piti->fontSize()), QVariant(ui->m_size_sb->value()), parent_undo);
 						qpuc->setAnimated(true, false);
 					}
 				}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/