diff options
author | Noel Power <noel.power@novell.com> | 2012-08-03 08:54:11 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-03 09:06:43 +0100 |
commit | c4ef97e6bea0e7de3fa7f0842b3319478d869ae0 (patch) | |
tree | 52f2bca0fa522596c206cbd10f2ef2db696bf2a6 /sc | |
parent | 4e1629ff792adeff05e4a0e04f5263a242d167ff (diff) |
Revert "new fix for fdo#47907"
This reverts commit 285a5ae06cf51927c2df4b47043e51394aab98b7.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excdoc.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index e83c119f23c1..bf189bf090ea 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( mxNoteList ); + aRecList.AppendRecord( mxCellTable->CreateRecord( EXC_ID_NOTE ) ); // sheet view settings: WINDOW2, SCL, PANE, SELECTION aRecList.AppendNewRecord( new XclExpTabViewSettings( GetRoot(), mnScTab ) ); @@ -589,8 +589,10 @@ void ExcTable::FillAsXmlTable( SCTAB nCodeNameIdx ) aRecList.AppendRecord( GetPivotTableManager().CreatePivotTablesRecord( mnScTab ) ); // list of NOTE records, generated by the cell table - if( mxNoteList != NULL && !mxNoteList->IsEmpty() ) - aRecList.AppendNewRecord( new XclExpComments( mnScTab, *mxNoteList ) ); + 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 ) ); // web queries Add( new XclExpWebQueryBuffer( GetRoot() ) ); |