]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/spinctrl.cpp
added -mt switch for Solaris/CC MT builds
[wxWidgets.git] / src / gtk1 / spinctrl.cpp
index d5efca072e8da36ac9a2dad5d5231db6b127ee6f..db68c07d703098e78441398aa36108ad5387714e 100644 (file)
@@ -222,7 +222,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event )
     if (event.KeyCode() == WXK_RETURN)
     {
         wxWindow *top_frame = m_parent;
-        while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+        while (top_frame->GetParent() && !(top_frame->GetParent()->IsTopLevel()))
             top_frame = top_frame->GetParent();
         GtkWindow *window = GTK_WINDOW(top_frame->m_widget);