[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jan 25 07:19:43 PST 2013


 sc/source/filter/oox/stylesbuffer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 32ad9111191fd4f12f03120e8f3a416ee06fb7c3
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date:   Fri Jan 25 07:12:44 2013 -0200

    Only call getScDocument when needed
    
    Change-Id: I2dca76af46e63b5dd833f5a60549d4b1a7b03d84
    Reviewed-on: https://gerrit.libreoffice.org/1861
    Reviewed-by: Olivier Hallot <olivier.hallot at alta.org.br>
    Tested-by: Olivier Hallot <olivier.hallot at alta.org.br>

diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index bb3672d..3657f9b 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -2715,11 +2715,11 @@ void CellStyle::createCellStyle()
     if( !mbCreated )
         mbCreated = maFinalName.isEmpty();
 
-    ::ScDocument& rDoc = getScDocument();
     if( !mbCreated && !mpStyleSheet )
     {
         bool bCreatePattern = false;
         Xf* pXF = getStyles().getStyleXf( maModel.mnXfId ).get();
+        ::ScDocument& rDoc = getScDocument();
 
         bool bDefStyle = maModel.isDefaultStyle();
         if( bDefStyle )


More information about the Libreoffice-commits mailing list