tdf#148313 Basic IDE crashing while resizing dialog
Change-Id: Ic68b78f26626f346f3ef8b54a584de64165d9eb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133170 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -136,9 +136,10 @@ bool ViewObjectContactPrimitiveHit(
|
|||||||
{
|
{
|
||||||
// get primitive sequence
|
// get primitive sequence
|
||||||
sdr::contact::DisplayInfo aDisplayInfo;
|
sdr::contact::DisplayInfo aDisplayInfo;
|
||||||
const drawinglayer::primitive2d::Primitive2DContainer& rSequence(rVOC.getPrimitive2DSequence(aDisplayInfo));
|
// have to make a copy of this container here, because it might be changed underneath us
|
||||||
|
const drawinglayer::primitive2d::Primitive2DContainer aSequence(rVOC.getPrimitive2DSequence(aDisplayInfo));
|
||||||
|
|
||||||
if(!rSequence.empty())
|
if(!aSequence.empty())
|
||||||
{
|
{
|
||||||
// create a HitTest processor
|
// create a HitTest processor
|
||||||
const drawinglayer::geometry::ViewInformation2D& rViewInformation2D = rVOC.GetObjectContact().getViewInformation2D();
|
const drawinglayer::geometry::ViewInformation2D& rViewInformation2D = rVOC.GetObjectContact().getViewInformation2D();
|
||||||
@@ -152,7 +153,7 @@ bool ViewObjectContactPrimitiveHit(
|
|||||||
aHitTestProcessor2D.collectHitStack(pHitContainer != nullptr);
|
aHitTestProcessor2D.collectHitStack(pHitContainer != nullptr);
|
||||||
|
|
||||||
// feed it with the primitives
|
// feed it with the primitives
|
||||||
aHitTestProcessor2D.process(rSequence);
|
aHitTestProcessor2D.process(aSequence);
|
||||||
|
|
||||||
// deliver result
|
// deliver result
|
||||||
if (aHitTestProcessor2D.getHit())
|
if (aHitTestProcessor2D.getHit())
|
||||||
|
Reference in New Issue
Block a user