[qet] qet/qet: [5278] Fix : rotation of independent text item is not saved

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


Revision: 5278
Author:   blacksun
Date:     2018-03-25 20:20:54 +0200 (Sun, 25 Mar 2018)
Log Message:
-----------
Fix : rotation of independent text item is not saved

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

Modified: trunk/sources/qetgraphicsitem/independenttextitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/independenttextitem.cpp	2018-03-25 14:58:33 UTC (rev 5277)
+++ trunk/sources/qetgraphicsitem/independenttextitem.cpp	2018-03-25 18:20:54 UTC (rev 5278)
@@ -16,6 +16,7 @@
 	along with QElectroTech.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include "independenttextitem.h"
+#include "qet.h"
 #include <QDomElement>
 
 /**
@@ -60,8 +61,8 @@
 	result.setAttribute("x", QString("%1").arg(pos().x()));
 	result.setAttribute("y", QString("%1").arg(pos().y()));
 	result.setAttribute("text", toHtml());
-	if (rotationAngle()) {
-		result.setAttribute("rotation", QString("%1").arg(rotationAngle()));
+	if (rotation()) {
+		result.setAttribute("rotation", QString::number(QET::correctAngle(rotation())));
 	}
 	return(result);
 }


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