#include <math.h>
-// bool wxDCBase::sm_cacheing = FALSE;
+// bool wxDCBase::sm_cacheing = false;
// ============================================================================
// implementation
point->x = (int) x;
point->y = (int) y;
wx_spline_point_list.Append((wxObject*)point);
- return TRUE;
+ return true;
}
static void wx_spline_draw_point_array(wxDCBase *dc)
double x1, y1, x2, y2;
wxList::compatibility_iterator node = points->GetFirst();
+ if (node == NULL)
+ // empty list
+ return;
+
p = (wxPoint *)node->GetData();
x1 = p->x;
width0 = width;
if ( bitmap.Ok() )
{
- DrawBitmap(bitmap, x, y, TRUE /* use mask */);
+ DrawBitmap(bitmap, x, y, true /* use mask */);
wxCoord offset = bitmap.GetWidth() + 4;
x += offset;