new fix for fdo#52998

Change-Id: Icc5e90ac40056430bfbe36d8da1aaad8716cfee9
This commit is contained in:
Noel Power 2012-08-02 19:24:00 +01:00
parent f9a453fb01
commit 00f1a3ed8e

View file

@ -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() ) );