diff options
author | László Németh <nemeth@numbertext.org> | 2013-09-06 17:30:25 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2013-09-06 17:33:01 +0200 |
commit | f48b387d2ca1ab9022a370c2f4e67c8e7f23021c (patch) | |
tree | b6edc04b2871a7653abb01c26fbea0d5b53e970b /librelogo/source/LibreLogo | |
parent | a7403bf7c12048b8c7eefadd63b021a71cfa5de0 (diff) |
fdo#69041 LibreLogo: fix SVG/SMIL timing with filled polylines
Change-Id: Icebd47d57a830986c371a62ec7dab81ca8fd930a
Diffstat (limited to 'librelogo/source/LibreLogo')
-rw-r--r-- | librelogo/source/LibreLogo/LibreLogo.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index e5f3dba789ba..a331642b829f 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -787,7 +787,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__ @@ -799,7 +799,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__(): @@ -895,7 +896,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) |