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++

Don't skip native color sampling if "real canvas sampling" is on

Dmitry Kazakov6dd0044ee17c
diff --git a/libs/ui/widgets/KisScreenColorSampler.cpp b/libs/ui/widgets/KisScreenColorSampler.cpp
index 5429dfdf15..59ae720fcf 100644
--- a/libs/ui/widgets/KisScreenColorSampler.cpp
+++ b/libs/ui/widgets/KisScreenColorSampler.cpp
@@ -110,10 +110,8 @@ void KisScreenColorSampler::setPerformRealColorSamplingOfCanvas(bool enable)
void KisScreenColorSampler::sampleScreenColor()
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
- if (!performRealColorSamplingOfCanvas()) {
- if (tryToUsePlatformIntegration()) {
- return;
- }
+ if (tryToUsePlatformIntegration()) {
+ return;
}
#endif