summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-12-05 15:18:30 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-12-05 15:18:30 +0000
commita4b0eb932cfd9118d19f42a5af45e1317dfb0670 (patch)
tree86fa78b9249d4489e8ca5e9aed722626d5cb4c66 /vcl
parent2ca757fb21b5e232761397ef4f7d74a62d1275bf (diff)
#106002# report contextmenues with role window
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 6fbcee9f6046..ce08f5d26345 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: window.cxx,v $
*
- * $Revision: 1.161 $
+ * $Revision: 1.162 $
*
- * last change: $Author: tbe $ $Date: 2002-12-05 11:24:21 $
+ * last change: $Author: ssa $ $Date: 2002-12-05 16:18:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -8253,6 +8253,8 @@ USHORT Window::GetAccessibleRole() const
nRole = accessibility::AccessibleRole::FRAME;
else if( IsScrollable() )
nRole = accessibility::AccessibleRole::SCROLLPANE;
+ else if( ((Window*)this)->ImplGetWindow()->IsMenuFloatingWindow() )
+ nRole = accessibility::AccessibleRole::WINDOW; // #106002#, contextmenues are windows (i.e. toplevel)
else
// #104051# WINDOW seems to be a bad default role, use LAYEREDPANE instead
// a WINDOW is interpreted as a top-level window, which is typically not the case