[Libreoffice-commits] .: sc/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Wed Apr 13 07:56:41 PDT 2011
sc/source/core/data/table2.cxx | 1 +
sc/source/filter/excel/excdoc.cxx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 78cae641e3eef57212cd90ba0870b610a760f516
Author: Muthu Subramanian <sumuthu at novell.com>
Date: Wed Apr 13 20:27:32 2011 +0530
fdo#34903: xlsx comment export.
This was a bug of not Invalidating the cached
TableArea when a comment is inserted.
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index b59270d..07dc734 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 7e1f400..40ff8a4 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
More information about the Libreoffice-commits
mailing list