diff options
-rw-r--r-- | sc/source/filter/excel/xeescher.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index 04c1f1b9efbd..c7926a9b6f12 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -1643,12 +1643,8 @@ XclExpNote::XclExpNote(const XclExpRoot& rRoot, const ScAddress& rScPos, // get the main note text OUString aNoteText; if( pScNote ) - { aNoteText = pScNote->GetText(); - const EditTextObject *pEditObj = pScNote->GetEditTextObject(); - if( pEditObj ) - mpNoteContents = XclExpStringHelper::CreateString( rRoot, *pEditObj ); - } + // append additional text aNoteText = ScGlobal::addToken( aNoteText, rAddText, '\n', 2 ); @@ -1689,6 +1685,9 @@ XclExpNote::XclExpNote(const XclExpRoot& rRoot, const ScAddress& rScPos, maAuthor = XclExpString( " " ); else maAuthor = XclExpString( pScNote->GetAuthor(), XclStrFlags::NONE, 54 ); + + if (const EditTextObject *pEditObj = pScNote->GetEditTextObject()) + mpNoteContents = XclExpStringHelper::CreateString( rRoot, *pEditObj ); } SetRecSize( 9 + maAuthor.GetSize() ); |