vcl/source/uitest/uiobject.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b9af0c2964a75be1d59884f4aef1fa5a04f85336 Author: Markus Mohrhard <markus.mohrh...@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 <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits