mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Correction dans la classe PartPolygon : les attributs x et y etaient encore susceptibles d'etre ecrits dans un fichier .elmt avec une virgule en guise de separateur decimal.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@892 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -77,8 +77,8 @@ const QDomElement PartPolygon::toXml(QDomDocument &xml_document) const {
|
||||
int i = 1;
|
||||
foreach(QPointF point, polygon()) {
|
||||
point = mapToScene(point);
|
||||
xml_element.setAttribute(QString("x%1").arg(i), point.x());
|
||||
xml_element.setAttribute(QString("y%1").arg(i), point.y());
|
||||
xml_element.setAttribute(QString("x%1").arg(i), QString("%1").arg(point.x()));
|
||||
xml_element.setAttribute(QString("y%1").arg(i), QString("%1").arg(point.y()));
|
||||
++ i;
|
||||
}
|
||||
if (!closed) xml_element.setAttribute("closed", "false");
|
||||
|
||||
Reference in New Issue
Block a user