From 03edae216f5b063e26b5c9db02669760231aead2 Mon Sep 17 00:00:00 2001 From: blacksun Date: Wed, 20 Feb 2019 20:47:40 +0000 Subject: [PATCH] fix crash git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5739 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ui/inditextpropertieswidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/ui/inditextpropertieswidget.cpp b/sources/ui/inditextpropertieswidget.cpp index db3830d9e..d445eaa40 100644 --- a/sources/ui/inditextpropertieswidget.cpp +++ b/sources/ui/inditextpropertieswidget.cpp @@ -227,7 +227,7 @@ QUndoCommand *IndiTextPropertiesWidget::associatedUndo() const 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 @@ QUndoCommand *IndiTextPropertiesWidget::associatedUndo() const 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); } }