summaryrefslogtreecommitdiff
path: root/vcl/source/window/brdwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-05-18 18:13:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-18 20:23:41 +0200
commit8cf56338a96c77f4712130cc775d57410bd9b623 (patch)
treefb4a52c62dda143c479fc9b7c67c3e040bb2dc73 /vcl/source/window/brdwin.cxx
parentc66de7079f5ad92889a28b4a3f18adc4c4cf019f (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/brdwin.cxx')
-rw-r--r--vcl/source/window/brdwin.cxx2
1 files changed, 1 insertions, 1 deletions
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 )