[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - wizards/com

Michael Stahl mstahl at redhat.com
Wed Aug 5 12:07:16 PDT 2015


 wizards/com/sun/star/wizards/text/TextDocument.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1aed837f7d105881db54b4e707c26ac4da304c84
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Aug 4 23:03:05 2015 +0200

    wizards: text.TextDocument.getPageCount called as class method only
    
    Change-Id: I9888f8ab7bccdd2902d619487279999f2ff9ab13
    (cherry picked from commit c1617b8d74b5e232efeec864241ada89f874fe63)
    Reviewed-on: https://gerrit.libreoffice.org/17516
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/wizards/com/sun/star/wizards/text/TextDocument.py b/wizards/com/sun/star/wizards/text/TextDocument.py
index b52f885..3119b16 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()


More information about the Libreoffice-commits mailing list