X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf7a7e133be36522ec3afd0417f1d2bd860b4f6c..9c039d08bfbb59c0abcbc705fb49f9b2cb321edf:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 70bd684c16..f7ac59dc01 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/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) {