Resolves: tdf#100460 queryContentCells doesn't count annotations...
since
commit c06dbbe759
Author: Markus Mohrhard <markus.mohrhard@googlemail.com>
Date: Thu Feb 23 23:36:49 2012 +0100
remove mpNote from ScBaseCell
Change-Id: I281a207e26aec8886b1f46b9279e1135b61586da
This commit is contained in:
@@ -3601,7 +3601,17 @@ uno::Reference<sheet::XSheetCellRanges> SAL_CALL ScCellRangesBase::queryContentC
|
|||||||
if (bAdd)
|
if (bAdd)
|
||||||
aMarkData.SetMultiMarkArea(aIter.GetPos());
|
aMarkData.SetMultiMarkArea(aIter.GetPos());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nContentFlags & sheet::CellFlags::ANNOTATION)
|
||||||
|
{
|
||||||
|
std::vector<sc::NoteEntry> aNotes;
|
||||||
|
rDoc.GetNotesInRange(aRanges, aNotes);
|
||||||
|
|
||||||
|
for (const auto& i : aNotes)
|
||||||
|
{
|
||||||
|
aMarkData.SetMultiMarkArea(i.maPos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScRangeList aNewRanges;
|
ScRangeList aNewRanges;
|
||||||
|
Reference in New Issue
Block a user