[qet] qet/qet: [5231] Fix crash if location text is so long (typo in code), thanks David666 to

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5231
Author:   scorpio810
Date:     2018-02-07 01:20:50 +0100 (Wed, 07 Feb 2018)
Log Message:
-----------
Fix crash if location text is so long (typo in code), thanks David666 to
report it

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/element.cpp

Modified: trunk/sources/qetgraphicsitem/element.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/element.cpp	2018-02-06 16:12:33 UTC (rev 5230)
+++ trunk/sources/qetgraphicsitem/element.cpp	2018-02-07 00:20:50 UTC (rev 5231)
@@ -696,7 +696,7 @@
 							location_text->setTextFrom(DynamicElementTextItem::ElementInfo);
 							location_text->setInfoName("location");
 							location_text->setFontSize(6);
-							if(comment_text->toPlainText().count() > 17)
+							if(location_text->toPlainText().count() > 17)
 								location_text->setTextWidth(80);
 							location_text->setPos(deti->x(), deti->y()+20); //+20 is arbitrary, location_text must be below deti and comment
 							addDynamicTextItem(location_text);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/