diff --git a/include/wx/graphics.h b/include/wx/graphics.h index 392c13044c..f2edd54ca3 100644 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -323,7 +323,7 @@ public: float GetPosition() const { return m_pos; } void SetPosition(float pos) { - wxASSERT_MSG( pos >= 0 && pos < 1, "invalid gradient stop position" ); + wxASSERT_MSG( pos >= 0 && pos <= 1, "invalid gradient stop position" ); m_pos = pos; } diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index b014460e0b..7ab4da0b5c 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -520,7 +520,7 @@ void wxGraphicsGradientStops::Add(const wxGraphicsGradientStop& stop) } else { - wxFAIL_MSG( "invalid gradient stop position >= 1" ); + wxFAIL_MSG( "invalid gradient stop position > 1" ); } }