fdo#69041 LibreLogo: fix SVG/SMIL timing with filled polylines
Change-Id: Icebd47d57a830986c371a62ec7dab81ca8fd930a
This commit is contained in:
parent
a7403bf7c1
commit
f48b387d2c
@ -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))]
|
dots += [(__Point__(px, py), __Point__(px + 7, py + 7))]
|
||||||
return dots
|
return dots
|
||||||
|
|
||||||
def __draw__(d):
|
def __draw__(d, count = True):
|
||||||
shape = _.doc.createInstance( "com.sun.star.drawing." + d)
|
shape = _.doc.createInstance( "com.sun.star.drawing." + d)
|
||||||
shape.AnchorType = __AT_PAGE__
|
shape.AnchorType = __AT_PAGE__
|
||||||
shape.TextWrap = __THROUGHT__
|
shape.TextWrap = __THROUGHT__
|
||||||
@ -799,6 +799,7 @@ def __draw__(d):
|
|||||||
_.drawpage.add(shape)
|
_.drawpage.add(shape)
|
||||||
if __group__:
|
if __group__:
|
||||||
__group__.add(shape)
|
__group__.add(shape)
|
||||||
|
if count:
|
||||||
_.shapecache[next(_.shapecount)] = str(_.time)
|
_.shapecache[next(_.shapecount)] = str(_.time)
|
||||||
return shape
|
return shape
|
||||||
|
|
||||||
@ -895,7 +896,7 @@ def __fillit__(filled = True):
|
|||||||
__removeshape__(__ACTUAL__) # FIXME close dotted polyline
|
__removeshape__(__ACTUAL__) # FIXME close dotted polyline
|
||||||
return
|
return
|
||||||
if oldshape and "LineShape" in oldshape.ShapeType:
|
if oldshape and "LineShape" in oldshape.ShapeType:
|
||||||
shape = __draw__("PolyPolygonShape")
|
shape = __draw__("PolyPolygonShape", False)
|
||||||
shape.PolyPolygon = oldshape.PolyPolygon
|
shape.PolyPolygon = oldshape.PolyPolygon
|
||||||
shape.setPosition(oldshape.getPosition())
|
shape.setPosition(oldshape.getPosition())
|
||||||
shape.LineStyle, shape.LineDash = __linestyle__(_.linestyle)
|
shape.LineStyle, shape.LineDash = __linestyle__(_.linestyle)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user