From 771b9d2718f28beedbc1a913e8965cdd1fc75a88 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sat, 8 Feb 2014 11:37:46 -0500 Subject: fdo#74521: Only pick cell notes for that sheet, and skip the rest. Change-Id: I06a069e835eb7f2f90d34f4fcdfd935aff0234de --- sc/source/filter/excel/excdoc.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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::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 ) { -- cgit v1.2.3