diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-12-18 07:30:14 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-12-18 16:26:15 +0100 |
commit | 65685bac09a4320602f4dda5151d247c5a83a75c (patch) | |
tree | 5283157d6ac7aaa14c4856f0dd8324a1e8645e14 | |
parent | 46fbc12dac86579708695fddeaf4a3a2f8098955 (diff) |
vcl: don't use null window in FloatingWindow HitTest
Change-Id: I551f31cf30c7a58642becebe0256684055d0703a
Reviewed-on: https://gerrit.libreoffice.org/85383
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
-rw-r--r-- | vcl/source/window/floatwin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 9de1efdaf221..6c27982ae74f 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -521,6 +521,8 @@ FloatingWindow* FloatingWindow::ImplFloatHitTest( vcl::Window* pReference, const // use the border window to have the exact position vcl::Window *pBorderWin = pWin->GetWindow( GetWindowType::Border ); + if (!pBorderWin) + break; // the top-left corner in output coordinates ie (0,0) tools::Rectangle devRect( pBorderWin->ImplOutputToUnmirroredAbsoluteScreenPixel( tools::Rectangle( Point(), pBorderWin->GetSizePixel()) ) ) ; |