]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/mod_tables.cpp
Start xanim only when we are ready to play
[wxWidgets.git] / src / html / mod_tables.cpp
index 7f9e31c08ed85cfcdc77a30cc8ec1e3b26d7ba08..01bc6552ab5c4211d71e33f6fb6fb372ceaedf65 100644 (file)
@@ -6,8 +6,21 @@
 // Licence:     wxWindows Licence
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/defs.h"
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
+#include <wx/wxprec.h>
+
 #if wxUSE_HTML
+#ifdef __BORDLANDC__
+#pragma hdrstop
+#endif
+
+#ifndef WXPRECOMP
+#include <wx/wx.h>
+#endif
+
 
 /*
 REMARKS:
@@ -325,7 +338,7 @@ void wxHtmlTableCell::Layout(int w)
 
     /* 3.  sub-layout all cells: */
     {
-        int *ypos = (int*) malloc(sizeof(int) * (m_NumRows + 1));
+        int *ypos = new int[m_NumRows + 1];
 
         int actcol, actrow;
         int fullwid;
@@ -372,7 +385,7 @@ void wxHtmlTableCell::Layout(int w)
 
         }
         m_Height = ypos[m_NumRows];
-        free(ypos);
+        delete[] ypos;
     }
 }