diff --git a/escher/src/text_view.cpp b/escher/src/text_view.cpp index b8bc1b8e9..384b81ea3 100644 --- a/escher/src/text_view.cpp +++ b/escher/src/text_view.cpp @@ -1,13 +1,17 @@ #include void TextView::setBackgroundColor(KDColor backgroundColor) { - m_backgroundColor = backgroundColor; - markRectAsDirty(bounds()); + if (m_backgroundColor != backgroundColor) { + m_backgroundColor = backgroundColor; + markRectAsDirty(bounds()); + } } void TextView::setTextColor(KDColor textColor) { - m_textColor = textColor; - markRectAsDirty(bounds()); + if (m_textColor != textColor) { + m_textColor = textColor; + markRectAsDirty(bounds()); + } } void TextView::setAlignment(float horizontalAlignment, float verticalAlignment) {