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....@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.hal...@alta.org.br>
    Tested-by: Olivier Hallot <olivier.hal...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to