[umbrello-devel] [umbrello] [Bug 357373] When opening a saved file, class positions are wrong

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jan 23 21:09:40 UTC 2016


Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
   Version Fixed In|                            |2.18.2 (KDE Applications
                   |                            |15.12.2)
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/umbr
                   |                            |ello/90517660d6a14da833ea6c
                   |                            |b7c1641bcdfe6c1d2b
             Status|CONFIRMED                   |RESOLVED

--- Comment #11 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit 90517660d6a14da833ea6cb7c1641bcdfe6c1d2b by Ralf Habacker.
Committed on 23/01/2016 at 21:10.
Pushed by habacker into branch 'Applications/15.12'.

Fix 'When opening a saved file, class positions are wrong'.

The bug, which exists in Qt4 and 5, happens on saving xmi
files using a locale dependent decimal point and is caused
by a different implementation of void
QDomElement::setAttribute(const QString& name, double value)
not using the 'C' locale for converting floating point values
to string as the other number related methods does.

Therefore the bug fix is to use QString::number(), which uses
the 'C' locale.

Add related unit test.
FIXED-IN:2.18.2 (KDE Applications 15.12.2)

M  +2    -2    umbrello/umlscene.cpp
M  +2    -2    umbrello/umlwidgets/associationline.cpp
M  +4    -4    umbrello/umlwidgets/umlwidget.cpp
M  +118  -1    unittests/TEST_basictypes.cpp
M  +4    -0    unittests/TEST_basictypes.h


You are receiving this mail because:
You are the assignee for the bug.

More information about the umbrello-devel mailing list