diff --git a/sources/editor/graphicspart/parttext.cpp b/sources/editor/graphicspart/parttext.cpp index 9e1b9b5c6..e81a15427 100644 --- a/sources/editor/graphicspart/parttext.cpp +++ b/sources/editor/graphicspart/parttext.cpp @@ -172,12 +172,8 @@ void PartText::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) { @param value Valeur numerique relative au changement */ QVariant PartText::itemChange(GraphicsItemChange change, const QVariant &value) { - if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged) { - updateCurrentPartEditor(); - } else if (change == QGraphicsItem::ItemSelectedHasChanged) { - if (value.toBool() == true) { - updateCurrentPartEditor(); - } + if (change == QGraphicsItem::ItemPositionHasChanged || change == QGraphicsItem::ItemSceneHasChanged || change == QGraphicsItem::ItemSelectedHasChanged) { + updateCurrentPartEditor(); } return(QGraphicsTextItem::itemChange(change, value)); }