Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: Fix Specific Color Selector HSV/HSL updating

Freya Lupenee8a5244c3db
diff --git a/libs/widgets/kis_color_input.cpp b/libs/widgets/kis_color_input.cpp
index bfa162de9a..92b1090e27 100644
--- a/libs/widgets/kis_color_input.cpp
+++ b/libs/widgets/kis_color_input.cpp
@@ -692,6 +692,8 @@ void KisHsvColorInput::getHsxF(const QColor& color, qreal* h, qreal* s, qreal* x
float th;
color.getHslF(&th, &fS, &fX);
tempH = th;
+ *s = fS;
+ *x = fX;
#endif
}
break;
@@ -715,6 +717,8 @@ void KisHsvColorInput::getHsxF(const QColor& color, qreal* h, qreal* s, qreal* x
float th;
color.getHsvF(&th, &fS, &fX);
tempH = th;
+ *s = fS;
+ *x = fX;
#endif
}
break;