Kaydet (Commit) 34520415 authored tarafından László Németh's avatar László Németh Kaydeden (comit) Andras Timar

tdf#92368 fix saved positions of arcs, segments drawn by LibreLogo

Change-Id: I8f622680ddd31d0a7048c14c85932ae495ae0f5e
Reviewed-on: https://gerrit.libreoffice.org/16534Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
üst 4d06bb54
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment