diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 2 |
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) { |