diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 01:15:37 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 02:53:47 +0000 |
commit | b9af0c2964a75be1d59884f4aef1fa5a04f85336 (patch) | |
tree | 42198c0737e4f35f74dabac6d0d90a4f1b1545f2 /vcl | |
parent | 646be83e93fc2e68fc419cf6893bd1d1c1322bf7 (diff) |
uitest: allow to find ourself with an ID
Change-Id: I5418aba05acd53f00c8d60a7ac7005c83a04e5a4
Reviewed-on: https://gerrit.libreoffice.org/35701
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |