[Libreoffice-commits] core.git: vcl/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Aug 2 01:18:06 UTC 2017
vcl/source/uitest/uiobject.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 9ca7bda2cc8b67c2d10fcb81cce8bfd4d8b79b09
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Wed Aug 2 01:46:27 2017 +0200
uitest: detect real floating windows better
We use the FloatingWindow base class also for some windows that are not
independent. A good example is the hyperlink dialog.
Change-Id: I067ac0465de9ff3c8f9bc0c1a5c817a5e09d96e5
Reviewed-on: https://gerrit.libreoffice.org/40650
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 5d7132787ea3..ed5a84ab5655 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -97,7 +97,11 @@ bool isDialogWindow(vcl::Window const * pWindow)
bool isTopWindow(vcl::Window const * pWindow)
{
WindowType eType = pWindow->GetType();
- return eType == WindowType::FLOATINGWINDOW;
+ if (eType == WindowType::FLOATINGWINDOW)
+ {
+ return pWindow->GetStyle() & WB_SYSTEMFLOATWIN;
+ }
+ return false;
}
vcl::Window* get_top_parent(vcl::Window* pWindow)
More information about the Libreoffice-commits
mailing list