reportdesign/source/ui/report/ViewsWindow.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 228061cdf5571814c773eaab9b46a4f9a80071f4
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Aug 3 12:13:01 2023 +0200
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Aug 4 10:35:52 2023 +0200

    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 <[email protected]>
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>
    (cherry picked from commit 2d4d95e7fe13bdf6eb50e01081c93dfe7a963f23)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155300
    Reviewed-by: Michael Stahl <[email protected]>

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);
                 }
             }
         }

Reply via email to