diff --git a/sources/editor/graphicspart/partdynamictextfield.cpp b/sources/editor/graphicspart/partdynamictextfield.cpp index 863e67fbd..aa15c3b69 100644 --- a/sources/editor/graphicspart/partdynamictextfield.cpp +++ b/sources/editor/graphicspart/partdynamictextfield.cpp @@ -34,7 +34,7 @@ PartDynamicTextField::PartDynamicTextField(QETElementEditor *editor, QGraphicsIt setFont(QETApp::dynamicTextsItemFont()); QSettings settings; setRotation(settings.value("dynamic_rotation", 0).toInt()); - setTextWidth(settings.value("dynamic_with", 0).toInt()); + setTextWidth(settings.value("dynamic_with", -1).toInt()); setText("_"); setTextFrom(DynamicElementTextItem::UserText); setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemSendsGeometryChanges | QGraphicsItem::ItemIsMovable); diff --git a/sources/qetgraphicsitem/dynamicelementtextitem.cpp b/sources/qetgraphicsitem/dynamicelementtextitem.cpp index ff9da6e9e..9a32b1245 100644 --- a/sources/qetgraphicsitem/dynamicelementtextitem.cpp +++ b/sources/qetgraphicsitem/dynamicelementtextitem.cpp @@ -44,7 +44,7 @@ DynamicElementTextItem::DynamicElementTextItem(Element *parent_element) : setParentItem(parent_element); QSettings settings; setRotation(settings.value("dynamic_rotation", 0).toInt()); - setTextWidth(settings.value("dynamic_with", 0).toInt()); + setTextWidth(settings.value("dynamic_with", -1).toInt()); connect(this, &DynamicElementTextItem::textEdited, [this](const QString &old_str, const QString &new_str) { if(this->m_parent_element && this->m_parent_element->diagram())