diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/common')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Desktop.py | 5 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/common/Resource.py | 10 |
2 files changed, 4 insertions, 11 deletions
diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py index 4a18ca09a287..94a4a111f276 100644 --- a/wizards/com/sun/star/wizards/common/Desktop.py +++ b/wizards/com/sun/star/wizards/common/Desktop.py @@ -45,11 +45,6 @@ class Desktop(object): return xDesktop.getActiveFrame() @classmethod - def getActiveComponent(self, _xMSF): - xFrame = self.getActiveFrame(_xMSF) - return xFrame.getController().getModel() - - @classmethod def getDispatcher(self, xMSF, xFrame, _stargetframe, oURL): try: xDispatch = xFrame.queryDispatch(oURL, _stargetframe, ALL) diff --git a/wizards/com/sun/star/wizards/common/Resource.py b/wizards/com/sun/star/wizards/common/Resource.py index 472f0543e7e2..750c507d8330 100644 --- a/wizards/com/sun/star/wizards/common/Resource.py +++ b/wizards/com/sun/star/wizards/common/Resource.py @@ -50,12 +50,10 @@ class Resource(object): def getResArray(self, nID, iCount): try: - ResArray = list(range(iCount)) - i = 0 - while i < iCount: - ResArray[i] = getResText(nID + i) - i += 1 - return ResArray + resArray = [] + for i in range(iCount): + resArray.append(self.getResText(nID + i)) + return resArray except Exception: traceback.print_exc() raise ValueError("Resource with ID not" + str(nID) + " not found") |