[Libreoffice-commits] core.git: vcl/jsdialog

merttumer (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 6 09:27:12 UTC 2021


 vcl/jsdialog/executor.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit c18d2b46a37893acb7922c5dc49ddc4631a2c05d
Author:     merttumer <mert.tumer at collabora.com>
AuthorDate: Mon Jun 7 20:16:50 2021 +0300
Commit:     Mert Tumer <mert.tumer at collabora.com>
CommitDate: Tue Jul 6 11:26:37 2021 +0200

    Fix click on the drawing area of CSV dialog
    
    Change-Id: I8c13698b5e9e2e9c8869aa9094ce93c38bf2276f
    Signed-off-by: merttumer <mert.tumer at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116796
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117968
    Tested-by: Jenkins

diff --git a/vcl/jsdialog/executor.cxx b/vcl/jsdialog/executor.cxx
index 39d39601c02f..13cc7591d587 100644
--- a/vcl/jsdialog/executor.cxx
+++ b/vcl/jsdialog/executor.cxx
@@ -153,7 +153,11 @@ bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rDat
                         {
                             double posX = std::atof(clickPosX.data());
                             double posY = std::atof(clickPosY.data());
-                            Size size = pArea->get_size_request();
+                            OutputDevice& rRefDevice = pArea->get_ref_device();
+                            // We send OutPutSize for the drawing area bitmap
+                            // get_size_request is not necessarily updated
+                            // therefore it may be incorrect.
+                            Size size = rRefDevice.GetOutputSize();
                             posX = posX * size.Width();
                             posY = posY * size.Height();
                             LOKTrigger::trigger_click(*pArea, Point(posX, posY));


More information about the Libreoffice-commits mailing list