diff options
author | Kohei Yoshida <kohei@openoffice.org> | 2009-08-27 02:36:18 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei@openoffice.org> | 2009-08-27 02:36:18 +0000 |
commit | 80434c86f9a52c5118b5590f6df3b95d732f1c9e (patch) | |
tree | 161555dad986bcba7539310d2ef8dd57d1e85917 /accessibility | |
parent | edd0ebc6c47352de490041bb05cd5875738ba902 (diff) |
Use the new PopupMenuFloatingWindow instead of FloatingWindow for popup menu specific stuff.
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/helper/acc_factory.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index 643e55f4d5c5..bdb3787df6ad 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -72,7 +72,7 @@ #include <accessibility/extended/accessibleeditbrowseboxcell.hxx> #include <vcl/lstbox.hxx> #include <vcl/combobox.hxx> -#include "vcl/floatwin.hxx" +#include "vcl/popupmenuwindow.hxx" #include <floatingwindowaccessible.hxx> @@ -377,9 +377,9 @@ inline bool hasFloatingChild(Window *pWindow) } else if ( nType == WINDOW_BORDERWINDOW && hasFloatingChild( pWindow ) ) { - FloatingWindow* pChild = static_cast<FloatingWindow*>( + PopupMenuFloatingWindow* pChild = dynamic_cast<PopupMenuFloatingWindow*>( pWindow->GetAccessibleChildWindow(0)); - if ( pChild->IsPopupMenu() ) + if ( pChild && pChild->IsPopupMenu() ) { // Get the accessible context from the child window. Reference<XAccessible> xAccessible = pChild->CreateAccessible(); |