summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-08-04 23:03:05 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-08-05 19:07:11 +0000
commitbcb2be2b846d99e3e21cfdc88a1395c842fa435e (patch)
tree97755c524d9ab7ec37fc390b8124ec66b7b5fe5a
parent9fefceaaea28a621f009691b34d44d069e79b23b (diff)
wizards: text.TextDocument.getPageCount called as class method only
Change-Id: I9888f8ab7bccdd2902d619487279999f2ff9ab13 (cherry picked from commit c1617b8d74b5e232efeec864241ada89f874fe63) Reviewed-on: https://gerrit.libreoffice.org/17513 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.py b/wizards/com/sun/star/wizards/text/TextDocument.py
index b52f885fedd1..3119b16f2297 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.py
+++ b/wizards/com/sun/star/wizards/text/TextDocument.py
@@ -211,6 +211,7 @@ class TextDocument(object):
@return the page count of the document.
'''
+ @classmethod
def getPageCount(self, model):
xController = model.getCurrentController()
xPC = xController.getViewCursor()