Editor: Update document layout only if the mark color changes

Change-Id: Ic0408e87422edcf880381a20d685b24c785919c3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-05-24 18:46:44 +02:00
parent ce74e9fb2d
commit 1ce044ef7a

View File

@@ -387,6 +387,8 @@ Utils::optional<Theme::Color> TextMark::color() const
void TextMark::setColor(const Theme::Color &color)
{
if (m_color.has_value() && *m_color == color)
return;
m_color = color;
updateMarker();
}