// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "misc.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#endif
#ifndef WX_PRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
#if wxUSE_PROLOGIO
-#include <wx/deprecated/wxexpr.h>
+#include "wx/deprecated/wxexpr.h"
#endif
-#include <wx/types.h>
+#include "wx/types.h"
#ifdef new
#undef new
i ++;
}
- delete widths;
+ delete[] widths;
}
// Centre a list of strings in the given box
// Make new lines into NULL strings at this point
int i = 0; int j = 0; int len = text.Length();
- wxChar word[200]; word[0] = 0;
+ wxChar word[400]; word[0] = 0;
bool end_word = false; bool new_line = false;
while (i < len)
{
wxString oldBuffer(buffer);
wxString s = node->GetData();
- if (s.IsEmpty())
+ if (s.empty())
{
// FORCE NEW LINE
if (buffer.Length() > 0)
hex.Mid(0,2).ToLong(&r, 16);
hex.Mid(2,2).ToLong(&g, 16);
hex.Mid(4,2).ToLong(&b, 16);
- return wxColour(r, g, b);
+ return wxColour((unsigned char)r,
+ (unsigned char)g,
+ (unsigned char)b);
}
else
- return wxColour(0,0,0);
+ return *wxBLACK;
}
// RGB to 3-digit hex