diff --git a/include/wx/generic/dataview.h b/include/wx/generic/dataview.h index 6f89ee6165..27bdf1dc90 100644 --- a/include/wx/generic/dataview.h +++ b/include/wx/generic/dataview.h @@ -64,8 +64,11 @@ public: virtual void SetWidth(int width) wxOVERRIDE { - m_width = width; - UpdateDisplay(); + if ( width != m_width ) + { + m_width = width; + UpdateDisplay(); + } } virtual int GetWidth() const wxOVERRIDE;