diff options
Diffstat (limited to 'src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp')
-rw-r--r-- | src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp index f8587df06fe..cb6811c9750 100644 --- a/src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/detail/colorcontrol.cpp @@ -85,7 +85,7 @@ void ColorControl::mouseReleaseEvent(QMouseEvent *event) event->accept(); - if (color != m_color) { + if (color.isValid() && color != m_color) { m_color = color; update(); emit valueChanged(); |