]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
wxZlibStreams fixes; allow them to be used as deflate [de]compressor in gz/zip files...
[wxWidgets.git] / src / motif / window.cpp
index fcb9aa4b493155713407d98e4f4684dfd66eb608..63b1e37a5207c060e84ba199ada944b601a9d4ab 100644 (file)
@@ -374,9 +374,6 @@ wxWindow::~wxWindow()
         DetachWidget(wMain);
     }
 
-    if ( m_parent )
-        m_parent->RemoveChild( this );
-
     // If m_drawingArea, we're a fully-fledged window with drawing area,
     // scrollbars etc. (what wxCanvas used to be)
     if ( m_drawingArea )
@@ -1411,6 +1408,7 @@ void wxWindow::DoMoveWindowIntr(int xx, int yy, int w, int h,
                 w -= 2 * (thick + margin);
             }
 
+            if( w < 1 ) w = 1;
             XtVaSetValues ((Widget) m_scrolledWindow, XmNwidth, w, NULL);
         }
 
@@ -1427,6 +1425,7 @@ void wxWindow::DoMoveWindowIntr(int xx, int yy, int w, int h,
                 h -= 2 * (thick + margin);
             }
 
+            if( h < 1 ) h = 1;
             XtVaSetValues ((Widget) m_scrolledWindow, XmNheight, h, NULL);
         }