mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5739 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user