[qet] [3395] Paste command, bug fix

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


Revision: 3395
Author:   blacksun
Date:     2014-10-23 21:38:49 +0200 (Thu, 23 Oct 2014)
Log Message:
-----------
Paste command, bug fix

Modified Paths:
--------------
    trunk/sources/diagramcommands.cpp

Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp	2014-10-23 08:48:30 UTC (rev 3394)
+++ trunk/sources/diagramcommands.cpp	2014-10-23 19:38:49 UTC (rev 3395)
@@ -220,7 +220,8 @@
 				e -> rElementInformations().addValue("comment", "");
 
 				//Reset the text field tagged "label
-				e -> taggedText("label") -> setPlainText("_");
+				if (ElementTextItem *eti = e ->taggedText("label"))
+					eti -> setPlainText("_");
 			}
 		}
 	}


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