editeng/source/editeng/impedit.cxx | 2 +- vcl/source/window/brdwin.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8cf56338a96c77f4712130cc775d57410bd9b623 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Tue May 18 18:13:04 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue May 18 20:23:41 2021 +0200 fix some casts after commit 9090dc1f3b27195f5defd35586ac79357992be21 Date: Mon Jan 18 18:27:19 2021 +0200 split OutputDevice from Window Change-Id: I2622c9814ec18c98364a7eb18084759f17c80f14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115762 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 8e99f56156bc..bf7ac05e868e 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -701,7 +701,7 @@ void ImpEditView::ImplDrawHighlightRect( OutputDevice& rTarget, const Point& rDo } else { - vcl::Window* pWindow = dynamic_cast<vcl::Window*>(&rTarget); + vcl::Window* pWindow = rTarget.GetOwnerWindow(); if (pWindow) { diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index e343a7bd4ae1..3fd3503dab80 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -80,7 +80,7 @@ static void ImplDrawBrdWinSymbolButton( vcl::RenderContext* pDev, nState &= ~DrawButtonFlags::Highlight; tools::Rectangle aTempRect; - vcl::Window *pWin = dynamic_cast< vcl::Window* >(pDev); + vcl::Window *pWin = pDev->GetOwnerWindow(); if( pWin ) { if( bMouseOver ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits