mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user