wxMDIChildFrame::IsTopLevel returns false but for this purpose we
should use the MDI Child, not it's parent. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e59461fff5
commit
21131143d5
@ -27,6 +27,10 @@
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#ifdef __WXMSW__
|
||||
#include "wx/mdi.h"
|
||||
#endif
|
||||
|
||||
#include "wx/gizmos/dynamicsash.h"
|
||||
|
||||
|
||||
@ -452,7 +456,11 @@ wxWindow *wxDynamicSashWindowImpl::FindFrame() const {
|
||||
wxWindow *win;
|
||||
|
||||
win = m_window->GetParent();
|
||||
while (win && !win->IsTopLevel()) {
|
||||
while (win && !win->IsTopLevel()
|
||||
#ifdef __WXMSW__
|
||||
&& ! wxIsKindOf(win, wxMDIChildFrame) // not top-level but still a frame
|
||||
#endif
|
||||
) {
|
||||
win = win->GetParent();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user