Kaydet (Commit) 502e8785 authored tarafından László Németh's avatar László Németh

LibreLogo: fix regression of line drawing

related to measurement changes, for example we got only
5.7 cm long line for "FORWARD 10cm", because the processed
value measured in 0.0100 mm instead of the correct twips
(pt/20 ~ 0.0176mm).

Note: only the line drawing was shorter, the turtle path
didn't change, so the turle could draw only dashed line
for multiple FORWARD or BACK, instead of a continuous one.

regression from
    commit 36bade04
    tdf106792 Get rid of SvxShapePolyPolygonBezier

Change-Id: I16d75dbdadef5af9c545abc86575490559b3d54c
Reviewed-on: https://gerrit.libreoffice.org/61145
Tested-by: Jenkins
Reviewed-by: 's avatarLászló Németh <nemeth@numbertext.org>
üst ccbd7731
......@@ -968,7 +968,7 @@ def __go__(shapename, n, dot = False, preciseAngle = -1):
if shape and not _.pen and not dot:
_.continuous = False
return
c, c2 = __Point__(pos.X + turtle.BoundRect.Width / 2.0, pos.Y + turtle.BoundRect.Height / 2.0), __Point__(round(dx), round(dy))
c, c2 = __Point__(pos.X + turtle.BoundRect.Width / 2.0, pos.Y + turtle.BoundRect.Height / 2.0), __Point__(round(dx / __MM10_TO_TWIP__), round(dy / __MM10_TO_TWIP__))
if shape and "LineShape" in shape.ShapeType:
if _.continuous or dot:
last = shape.PolyPolygon[-1][-1]
......
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