summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2013-09-06 17:30:25 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-09-09 14:42:05 +0000
commit7940ab6fb6ccf81b096918f8230bca3661c31790 (patch)
tree4495e19eea683e66adcb510e43970b6050f47578
parentacad04e23aec71a89346c59aa9531ba875dae0bc (diff)
fdo#69041 LibreLogo: fix SVG/SMIL timing with filled polylines
Change-Id: Icebd47d57a830986c371a62ec7dab81ca8fd930a Reviewed-on: https://gerrit.libreoffice.org/5846 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--librelogo/source/LibreLogo/LibreLogo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py
index 84e7a2b1e789..f0b78bf1af37 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -784,7 +784,7 @@ def __dots__(n, pos, dx, dy, r = -1, q = 0): # dots for dotted polyline or circl
dots += [(__Point__(px, py), __Point__(px + 7, py + 7))]
return dots
-def __draw__(d):
+def __draw__(d, count = True):
shape = _.doc.createInstance( "com.sun.star.drawing." + d)
shape.AnchorType = __AT_PAGE__
shape.TextWrap = __THROUGHT__
@@ -796,7 +796,8 @@ def __draw__(d):
_.drawpage.add(shape)
if __group__:
__group__.add(shape)
- _.shapecache[next(_.shapecount)] = str(_.time)
+ if count:
+ _.shapecache[next(_.shapecount)] = str(_.time)
return shape
def __zoom__():
@@ -892,7 +893,7 @@ def __fillit__(filled = True):
__removeshape__(__ACTUAL__) # FIXME close dotted polyline
return
if oldshape and "LineShape" in oldshape.ShapeType:
- shape = __draw__("PolyPolygonShape")
+ shape = __draw__("PolyPolygonShape", False)
shape.PolyPolygon = oldshape.PolyPolygon
shape.setPosition(oldshape.getPosition())
shape.LineStyle, shape.LineDash = __linestyle__(_.linestyle)