Kaydet (Commit) 5ae49477 authored tarafından Caolán McNamara's avatar Caolán McNamara

Window::GetType returns WindowType not ResourceType

yikes!

Change-Id: I5aba88fbc1e452c85fb4a75260bc3518bdf5facc
üst 13bbb6f5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment