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

Fix setting softproofing and gamutcheck flags.

parent 9ae336ed
...@@ -561,14 +561,19 @@ void KisCanvas2::setProofingOptions(bool softProof, bool gamutCheck) ...@@ -561,14 +561,19 @@ void KisCanvas2::setProofingOptions(bool softProof, bool gamutCheck)
if (softProof) { if (softProof) {
conversionFlags |= KoColorConversionTransformation::SoftProofing; conversionFlags |= KoColorConversionTransformation::SoftProofing;
qDebug()<<"setting softproofing in canvas"; } else {
conversionFlags = conversionFlags & ~KoColorConversionTransformation::SoftProofing;
} }
if (gamutCheck) { if (gamutCheck) {
conversionFlags |= KoColorConversionTransformation::GamutCheck; conversionFlags |= KoColorConversionTransformation::GamutCheck;
qDebug()<<"setting gamutChecking in canvas"; } else {
conversionFlags = conversionFlags & ~KoColorConversionTransformation::GamutCheck;
} }
m_d->proofingConfig->conversionFlags = conversionFlags; m_d->proofingConfig->conversionFlags = conversionFlags;
qDebug()<<"setting softproofing in canvas: "<<softProof <<", "<<gamutCheck;
qDebug()<<conversionFlags.testFlag(KoColorConversionTransformation::SoftProofing);
qDebug()<<conversionFlags.testFlag(KoColorConversionTransformation::GamutCheck);
startUpdateInPatches(this->image()->bounds()); startUpdateInPatches(this->image()->bounds());
} }
......
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