sd/source/ui/view/outlview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e0b2fbd3848d0a8e97872604b6f9dcd2b7be2c63 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Nov 18 15:37:45 2022 +0300 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Nov 21 22:11:29 2022 +0100 Fix dynamic_cast after splitting OutputDevice and vcl::Window class hierarchies ... in commit 9090dc1f3b27195f5defd35586ac79357992be21 (split OutputDevice from Window, May 17, 2021), which I desribed in tdf#152103. Change-Id: I07d2be9a74939ad6a65bb9537bf7390ed4fca6a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142942 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> (cherry picked from commit 2fa426da15a12e2a63554247e3c1c3f8c0ec5c24) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142926 Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 5e598de483dc..c3b7a57ca81a 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -206,7 +206,7 @@ void OutlineView::AddWindowToPaintView(OutputDevice* pWin, vcl::Window* pWindow) { if (mpOutlinerViews[nView] == nullptr) { - mpOutlinerViews[nView].reset( new OutlinerView(&mrOutliner, dynamic_cast< ::sd::Window* >(pWin)) ); + mpOutlinerViews[nView].reset( new OutlinerView(&mrOutliner, dynamic_cast< ::sd::Window* >(pWin->GetOwnerWindow())) ); mpOutlinerViews[nView]->SetBackgroundColor( aWhiteColor ); mrOutliner.InsertView(mpOutlinerViews[nView].get(), EE_APPEND); bAdded = true;