diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-01-25 07:12:44 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2013-01-25 15:19:23 +0000 |
commit | 32ad9111191fd4f12f03120e8f3a416ee06fb7c3 (patch) | |
tree | 0cf61d616f54c97e9e48a7eaa4fb9f048fd3c6d7 | |
parent | b0a2b73222482d1379e90b636efdf44a48ba3ab6 (diff) |
Only call getScDocument when needed
Change-Id: I2dca76af46e63b5dd833f5a60549d4b1a7b03d84
Reviewed-on: https://gerrit.libreoffice.org/1861
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
-rw-r--r-- | sc/source/filter/oox/stylesbuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index bb3672d4b4c5..3657f9bbe277 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 ) |