diff options
author | Henry Castro <hcastro@collabora.com> | 2023-06-06 11:09:04 -0400 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-07 16:44:50 +0200 |
commit | b77112aa56bd402b5d02dafaf41f88822ffddca9 (patch) | |
tree | a55c1be103397ff39e54ffb5665437ec0e33df7d | |
parent | sc: fix crash with document properties dialog (diff) | |
download | core-b77112aa56bd402b5d02dafaf41f88822ffddca9.tar.gz core-b77112aa56bd402b5d02dafaf41f88822ffddca9.zip |
lok: vcl: fix "ImplConvertToAbsPos" function
The conversion to absolute position is ignored for mirrored graphics,
otherwise, the popup window will be closed after the mouse up event.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I2cb101b07f1aa79ab8aa605637b276ad3a56ce88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152681
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | vcl/source/window/floatwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 094a3ef184a2..4eeefd382b63 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -485,7 +485,7 @@ Point FloatingWindow::ImplConvertToAbsPos(vcl::Window* pReference, const Point& const OutputDevice *pWindowOutDev = pReference->GetOutDev(); // compare coordinates in absolute screen coordinates - if( pWindowOutDev->HasMirroredGraphics() ) + if ( pWindowOutDev->HasMirroredGraphics() && !comphelper::LibreOfficeKit::isActive() ) { if(!pReference->IsRTLEnabled() ) pWindowOutDev->ReMirror( aAbsolute ); |