[Libreoffice-commits] core.git: vcl/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Mar 26 02:54:11 UTC 2017
vcl/source/uitest/uiobject.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b9af0c2964a75be1d59884f4aef1fa5a04f85336
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Mar 26 01:15:37 2017 +0100
uitest: allow to find ourself with an ID
Change-Id: I5418aba05acd53f00c8d60a7ac7005c83a04e5a4
Reviewed-on: https://gerrit.libreoffice.org/35701
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index b192f898c620..3dabf7a0e56f 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -364,6 +364,9 @@ vcl::Window* findChild(vcl::Window* pParent, const OUString& rID)
if (!pParent)
return nullptr;
+ if (pParent->get_id() == rID)
+ return pParent;
+
size_t nCount = pParent->GetChildCount();
for (size_t i = 0; i < nCount; ++i)
{
More information about the Libreoffice-commits
mailing list