diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-08 11:37:46 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-08 17:27:45 +0000 |
commit | 7586a2ebb8eacae6b45910cb248694c27dfdb901 (patch) | |
tree | e7485c3d74c33a987dcfbdb8cd0e8c8e11b1c40d | |
parent | 92fa709032696af2fa1d23184d1bde282f94ff9e (diff) |
fdo#74521: Only pick cell notes for that sheet, and skip the rest.
Change-Id: I06a069e835eb7f2f90d34f4fcdfd935aff0234de
(cherry picked from commit 771b9d2718f28beedbc1a913e8965cdd1fc75a88)
Reviewed-on: https://gerrit.libreoffice.org/7945
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/filter/excel/excdoc.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excdoc.cxx b/sc/source/filter/excel/excdoc.cxx index a8bfbf77c5d3..9cf433d50c78 100644 --- a/sc/source/filter/excel/excdoc.cxx +++ b/sc/source/filter/excel/excdoc.cxx @@ -421,7 +421,12 @@ void ExcTable::FillAsTable( SCTAB nCodeNameIdx ) rDoc.GetAllNoteEntries(aNotes); std::vector<sc::NoteEntry>::const_iterator it = aNotes.begin(), itEnd = aNotes.end(); for (; it != itEnd; ++it) + { + if (it->maPos.Tab() != mnScTab) + continue; + mxNoteList->AppendNewRecord(new XclExpNote(GetRoot(), it->maPos, it->mpNote, OUString())); + } if( GetOutput() != EXC_OUTPUT_BINARY ) { |