diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-02 20:13:32 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-16 14:55:04 +0200 |
commit | ebeb1d1ae554e8301d876b19afc05f454acdfc1c (patch) | |
tree | e30baa02e46223a07b07e98eb135263f6ad97c2e /desktop | |
parent | f38465834acf42b6a6023ea4b1bb7cdd09c77030 (diff) |
jsdialog: uitest: handle click for drawing area
Change-Id: I5ea78697b87f4b2a468f8507470b62031bee4aa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113524
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114202
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index e2027ab218ba..cd4b3da2d729 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3809,6 +3809,17 @@ static void lcl_sendDialogEvent(unsigned long long int nWindowId, const char* pA aMap["VALUE"] = aMap["data"]; pUIWindow->execute(sValue, aMap); } + else if (sAction == "click" && aMap["type"] == "drawingarea") + { + int separatorPos = aMap["data"].indexOf(';'); + if (separatorPos > 0) + { + // x;y + aMap["POSX"] = aMap["data"].copy(0, separatorPos); + aMap["POSY"] = aMap["data"].copy(separatorPos + 1); + } + pUIWindow->execute(sClickAction, aMap); + } else pUIWindow->execute(sClickAction, aMap); } |