From 5ae49477396c1a0d7dd2d387bf46ac8c02cbeb53 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 5 Sep 2014 21:23:11 +0100 Subject: Window::GetType returns WindowType not ResourceType yikes! Change-Id: I5aba88fbc1e452c85fb4a75260bc3518bdf5facc --- sfx2/source/appl/childwin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 50634e774d11..cc56952b40a4 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -511,11 +511,11 @@ SfxChildWindowContext::~SfxChildWindowContext() FloatingWindow* SfxChildWindowContext::GetFloatingWindow() const { Window *pParent = pWindow->GetParent(); - if ( pParent->GetType() == RSC_DOCKINGWINDOW || pParent->GetType() == RSC_TOOLBOX ) + if (pParent->GetType() == WINDOW_DOCKINGWINDOW || pParent->GetType() == WINDOW_TOOLBOX) { return ((DockingWindow*)pParent)->GetFloatingWindow(); } - else if ( pParent->GetType() == RSC_FLOATINGWINDOW ) + else if (pParent->GetType() == WINDOW_FLOATINGWINDOW) { return (FloatingWindow*) pParent; } -- cgit