summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-08 11:37:46 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-02-08 11:40:59 -0500
commit771b9d2718f28beedbc1a913e8965cdd1fc75a88 (patch)
treee475c7715e254b97a5c76111b1caf729873d37ad
parent7d71fd489c39f348c43477cafdc1bc150bf1ff68 (diff)
fdo#74521: Only pick cell notes for that sheet, and skip the rest.
Change-Id: I06a069e835eb7f2f90d34f4fcdfd935aff0234de
-rw-r--r--sc/source/filter/excel/excdoc.cxx5
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 )
{