Fix : rotation of independent text item is not saved

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5278 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-03-25 18:20:54 +00:00
parent 6a958c668a
commit d44ead205b

View File

@@ -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 @@ QDomElement IndependentTextItem::toXml(QDomDocument &document) const {
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);
}