diff options
author | Noel Power <noel.power@novell.com> | 2012-08-02 19:24:00 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-03 09:06:43 +0100 |
commit | 00f1a3ed8ec17b8274a7bf3ee8f5d394a8a16bab (patch) | |
tree | 2d01f869349a40aba22eefe9a4bbc1e1f5312bbb /sc | |
parent | f9a453fb01908e16032abdbf1f895666e1d260a6 (diff) |
new fix for fdo#52998
Change-Id: Icc5e90ac40056430bfbe36d8da1aaad8716cfee9
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excdoc.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index bf189bf090ea..e83c119f23c1 100644 --- a/sc/source/filter/excel/excdoc.cxx +++ b/sc/source/filter/excel/excdoc.cxx @@ -510,7 +510,7 @@ void ExcTable::FillAsTable( SCTAB nCodeNameIdx ) } // list of NOTE records, generated by the cell table - aRecList.AppendRecord( mxCellTable->CreateRecord( EXC_ID_NOTE ) ); + aRecList.AppendRecord( mxNoteList ); // sheet view settings: WINDOW2, SCL, PANE, SELECTION aRecList.AppendNewRecord( new XclExpTabViewSettings( GetRoot(), mnScTab ) ); @@ -589,10 +589,8 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx ) aRecList.AppendRecord( GetPivotTableManager().CreatePivotTablesRecord( mnScTab ) ); // 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 && !xNoteList->IsEmpty() ) - aRecList.AppendNewRecord( new XclExpComments( mnScTab, *xNoteList ) ); + if( mxNoteList != NULL && !mxNoteList->IsEmpty() ) + aRecList.AppendNewRecord( new XclExpComments( mnScTab, *mxNoteList ) ); // web queries Add( new XclExpWebQueryBuffer( GetRoot() ) ); |