Commit ce45e860 authored by Ralf Habacker's avatar Ralf Habacker

Fix another crash editing Time variant of SignalWidget.

BUG:329576
FIXED-IN:4.12.5
(cherry picked from commit 94ac4429)
parent f243b510
......@@ -186,7 +186,14 @@ void SignalWidget::setName(const QString &strName)
m_Text = strName;
updateGeometry();
if (signalType() == SignalWidget::Time) {
m_pName->setText(m_Text);
if (!m_pName) {
m_pName = new FloatingTextWidget(umlScene(), Uml::TextRole::Floating, m_Text);
umlScene()->setupNewWidget(m_pName);
m_pName->setX(0);
m_pName->setY(0);
}
else
m_pName->setText(m_Text);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment