]> git.saurik.com Git - wxWidgets.git/commitdiff
wxHtmlWidgetCells now destroys window correctly
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 12 Aug 1999 14:03:23 +0000 (14:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 12 Aug 1999 14:03:23 +0000 (14:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/htmlcell.h

index 87a3e040d76a678e7f24f36fe17dbbec5166da51..e413f3764b390993d5bf63e492ea5c80681da1c0 100644 (file)
@@ -271,6 +271,7 @@ class WXDLLEXPORT wxHtmlWidgetCell : public wxHtmlCell
                 // if w != 0 then the m_Wnd has 'floating' width - it adjust
                 // it's width according to parent container's width
                 // (w is percent of parent's width)
+        ~wxHtmlWidgetCell() {if (m_Wnd) m_Wnd -> Destroy(); }
         virtual void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
         virtual void DrawInvisible(wxDC& dc, int x, int y);
         virtual void Layout(int w);