diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-06-27 04:04:15 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-06-27 19:10:54 +0000 |
commit | 1054fe84e7eeb93c3d0f52e886a0d1c04536ac8c (patch) | |
tree | 91c0b752ccb65b79b74a15b725390c2a42eaf99c | |
parent | fb87c1a135f01f66c53897208d0053024cf7e66f (diff) |
tdf#92368 fix saved positions of arcs, segments drawn by LibreLogo
Change-Id: I8f622680ddd31d0a7048c14c85932ae495ae0f5e
Reviewed-on: https://gerrit.libreoffice.org/16534
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index 327648c31eb6..081431cf2f48 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1064,6 +1064,7 @@ def __boxshape__(shapetype, l): if shapetype == "Rectangle" and len(l) > 2: shape.CornerRadius = (l[2] * __PT_TO_TWIP__) / __MM10_TO_TWIP__ elif shapetype == "Ellipse" and len(l) > 2: + oldBoundRect = shape.BoundRect try: shape.CircleKind = __SECTION__ shape.CircleStartAngle = (-l[3] - 270) * 100 @@ -1071,6 +1072,9 @@ def __boxshape__(shapetype, l): shape.CircleKind = [__FULL__, __SECTION__, __CUT__, __ARC__][l[4]] except: pass + pos.X = pos.X + shape.BoundRect.X - oldBoundRect.X + pos.Y = pos.Y + shape.BoundRect.Y - oldBoundRect.Y + shape.setPosition(pos) __visible__(shape, True) __removeshape__(__ACTUAL__) _.shapecache[__ACTUAL__] = shape |