summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2011-04-13 20:27:32 +0530
committerMuthu Subramanian <sumuthu@novell.com>2011-04-13 20:27:32 +0530
commit78cae641e3eef57212cd90ba0870b610a760f516 (patch)
tree67511b116ed5d515e082a8181df9cc3c2b1b5fa7
parent38a3850edb09b2c592af47a358a6370ab4cc0393 (diff)
fdo#34903: xlsx comment export.
This was a bug of not Invalidating the cached TableArea when a comment is inserted.
-rw-r--r--sc/source/core/data/table2.cxx1
-rw-r--r--sc/source/filter/excel/excdoc.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b59270d5f..07dc734fb 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1091,6 +1091,7 @@ void ScTable::TakeNote( SCCOL nCol, SCROW nRow, ScPostIt*& rpNote )
mxUninitNotes.reset( new ScAddress2DVec );
mxUninitNotes->push_back( ScAddress2D( nCol, nRow ) );
}
+ InvalidateTableArea();
}
else
DELETEZ( rpNote );
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx
index 7e1f40062..40ff8a48f 100644
--- a/sc/source/filter/excel/excdoc.cxx
+++ b/sc/source/filter/excel/excdoc.cxx
@@ -583,7 +583,7 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx )
// list of NOTE records, generated by the cell table
XclExpRecordRef xNotes = mxCellTable->CreateRecord( EXC_ID_NOTE );
XclExpRecordList< XclExpNote >* xNoteList = dynamic_cast< XclExpRecordList< XclExpNote >* >( xNotes.get() );
- if( xNoteList != NULL )
+ if( xNoteList != NULL && !xNoteList->IsEmpty() )
aRecList.AppendNewRecord( new XclExpComments( mnScTab, *xNoteList ) );
// web queries