Commit a3b224b6 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Fix loading of default gamut warning color.

Always set the color space of the kocolor, kids.

ref T2337
parent 652405d3
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <KoConfig.h> #include <KoConfig.h>
#include <KoColorProfile.h> #include <KoColorProfile.h>
#include <KoColorSpaceRegistry.h>
#include <KoColorConversionTransformation.h> #include <KoColorConversionTransformation.h>
#include "kis_debug.h" #include "kis_debug.h"
...@@ -411,8 +412,9 @@ KisProofingConfiguration *KisImageConfig::defaultProofingconfiguration() ...@@ -411,8 +412,9 @@ KisProofingConfiguration *KisImageConfig::defaultProofingconfiguration()
} }
QColor def; QColor def;
def = m_config.readEntry("defaultProofingGamutwarning", QColor(Qt::gray)); def = m_config.readEntry("defaultProofingGamutwarning", QColor(Qt::gray));
KoColor col; KoColor col(KoColorSpaceRegistry::instance()->rgb8());
col.fromQColor(def); col.fromQColor(def);
col.setOpacity(1.0);
proofingConfig->warningColor = col; proofingConfig->warningColor = col;
proofingConfig->adaptationState = (double)m_config.readEntry("defaultProofingAdaptationState", 1.0); proofingConfig->adaptationState = (double)m_config.readEntry("defaultProofingAdaptationState", 1.0);
return proofingConfig; return proofingConfig;
......
...@@ -237,12 +237,12 @@ ...@@ -237,12 +237,12 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Absolute Colorimetric</string> <string>Saturation</string>
</property> </property>
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>Saturation</string> <string>Absolute Colorimetric</string>
</property> </property>
</item> </item>
</widget> </widget>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment