summaryrefslogtreecommitdiff
path: root/editeng
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 /editeng
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 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx2
1 files changed, 1 insertions, 1 deletions
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)
{