X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf7a7e133be36522ec3afd0417f1d2bd860b4f6c..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/dcclient.cpp?ds=sidebyside diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 70bd684c16..84d0cebf07 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -137,7 +137,9 @@ void wxPaintDC::DrawLine( long x1, long y1, long x2, long y2 ) { if (!Ok()) return; - if (!m_isDrawable) ((wxMemoryDC*)this)->m_selected.DestroyImage(); + // FIXME: is this right? Causes a segfault on my system and doesn't + // seem right: wxPaintDC does not inherit from wxMemoryDC + // if (!m_isDrawable) ((wxMemoryDC*)this)->m_selected.DestroyImage(); if (m_pen.GetStyle() != wxTRANSPARENT) { @@ -150,7 +152,9 @@ void wxPaintDC::CrossHair( long x, long y ) { if (!Ok()) return; - if (!m_isDrawable) ((wxMemoryDC*)this)->m_selected.DestroyImage(); + // FIXME: is this right? Causes a segfault on my system and doesn't + // seem right: wxPaintDC does not inherit from wxMemoryDC + // if (!m_isDrawable) ((wxMemoryDC*)this)->m_selected.DestroyImage(); if (m_pen.GetStyle() != wxTRANSPARENT) { @@ -1009,7 +1013,7 @@ static void wx_spline_draw_point_array(wxDC *dc) } } -void wxPaintDC::DrawOpenSpline( wxList *points ) +void wxPaintDC::DrawSpline( wxList *points ) { wxPoint *p; double cx1, cy1, cx2, cy2, cx3, cy3, cx4, cy4;