From 2d4d95e7fe13bdf6eb50e01081c93dfe7a963f23 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 3 Aug 2023 12:13:01 +0200 Subject: tdf#144072 Base crash when 2 fields selected in reportbuilder.. from different sections and width is adjusted 2nd time Change-Id: Id627a222a8c485fcd0458b4b9109fed7f2292ce1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155284 Reviewed-by: Patrick Luby Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/source/ui/report/ViewsWindow.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'reportdesign') diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx index e11735bf72ca..7f48de10b08d 100644 --- a/reportdesign/source/ui/report/ViewsWindow.cxx +++ b/reportdesign/source/ui/report/ViewsWindow.cxx @@ -1044,6 +1044,13 @@ void OViewsWindow::BegDragObj(const Point& _aPnt, SdrHdl* _pHdl,const OSectionVi << aRect.Top() << " on View #" << nViewCount); BegDragObj_createInvisibleObjectAtPosition(aRect, rView); + // BegDragObj_createInvisibleObjectAtPosition will call + // SdrMarkView::MarkObj + // -> SdrMarkView::AdjustMarkHdl + // -> SdrDragView::SetMarkHandles + // -> SdrMarkView::SetMarkHandles + // which will recreate the SdrHdl objects. + _pHdl = _pSection->PickHandle(_aPnt); } } } -- cgit