From 6a2f35459603cebfcdb28810f69a9d1bb326e7cb Mon Sep 17 00:00:00 2001 From: Artem Sokolovskii Date: Mon, 7 Oct 2024 09:39:13 +0200 Subject: [PATCH] SCXMLEditor: Fix uninitialized m_maxWidth Change-Id: If1988179931c8ed14d79b6ff9a6257a576c1deee Reviewed-by: Alessandro Portale --- src/plugins/scxmleditor/plugin_interface/tagtextitem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/scxmleditor/plugin_interface/tagtextitem.h b/src/plugins/scxmleditor/plugin_interface/tagtextitem.h index 4ffcdbb9426..0c940a8126c 100644 --- a/src/plugins/scxmleditor/plugin_interface/tagtextitem.h +++ b/src/plugins/scxmleditor/plugin_interface/tagtextitem.h @@ -55,7 +55,7 @@ private: QPointF m_movePoint; QPointF m_startPos; TextItem *m_textItem; - qreal m_maxWidth; + qreal m_maxWidth = -1.0; }; } // namespace PluginInterface