summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-05-28 21:39:45 +0100
committerNoel Power <noel.power@suse.com>2013-05-28 21:39:45 +0100
commit353e4d00f5a1226146466ed93c99e911c268d650 (patch)
tree812b6c7186038340a79bc9ad20684c5e6eb45044 /sc
parent4074c441bf3d959cfeb30f6d0eb5c73f7bf89b1f (diff)
oops forgot to use the mbReadyForFinalize flag in CondFormat::finalizeImport()
Change-Id: I4606b4b1e26303ebba501276a176b2fb66bf9e37
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/condformatbuffer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx
index 763ad96a6c46..aa31edd667fb 100644
--- a/sc/source/filter/oox/condformatbuffer.cxx
+++ b/sc/source/filter/oox/condformatbuffer.cxx
@@ -970,6 +970,9 @@ void CondFormat::importCfRule( SequenceInputStream& rStrm )
void CondFormat::finalizeImport()
{
+ // probably some error in the xml if we are not ready
+ if ( !mbReadyForFinalize )
+ return;
ScDocument& rDoc = getScDocument();
maRules.forEachMem( &CondFormatRule::finalizeImport );
SCTAB nTab = maModel.maRanges.getBaseAddress().Sheet;