Update easymacro.py
This commit is contained in:
parent
0e656fbecb
commit
686f1f6aea
|
@ -1375,8 +1375,7 @@ class LOCalc(LODocument):
|
||||||
sel = LOCalcRange(sel)
|
sel = LOCalcRange(sel)
|
||||||
elif sel.ImplementationName == OBJ_SHAPES:
|
elif sel.ImplementationName == OBJ_SHAPES:
|
||||||
if len(sel) == 1:
|
if len(sel) == 1:
|
||||||
sel = sel[0]
|
sel = LOShape(sel[0])
|
||||||
sel = LODrawPage(sel.Parent)[sel.Name]
|
|
||||||
else:
|
else:
|
||||||
debug(sel.ImplementationName)
|
debug(sel.ImplementationName)
|
||||||
return sel
|
return sel
|
||||||
|
@ -3370,7 +3369,7 @@ class LOWriter(LODocument):
|
||||||
class LOShape(LOBaseObject):
|
class LOShape(LOBaseObject):
|
||||||
IMAGE = 'com.sun.star.drawing.GraphicObjectShape'
|
IMAGE = 'com.sun.star.drawing.GraphicObjectShape'
|
||||||
|
|
||||||
def __init__(self, obj, index):
|
def __init__(self, obj, index=-1):
|
||||||
self._index = index
|
self._index = index
|
||||||
super().__init__(obj)
|
super().__init__(obj)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue