vcl/jsdialog/executor.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit c18d2b46a37893acb7922c5dc49ddc4631a2c05d Author: merttumer <[email protected]> AuthorDate: Mon Jun 7 20:16:50 2021 +0300 Commit: Mert Tumer <[email protected]> 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 <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116796 Reviewed-by: Szymon Kłos <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> 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)); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
