Commit ea1647b7 authored by Halla Rempt's avatar Halla Rempt
Browse files

Don't crash on TCXYY calculations if Krita was built without openexr

We cannot use F16 colorspaces unless we know krita has been built
with openexr, so use F32 instead, which is always present.

BUG:381190
parent d49d2573
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -195,9 +195,9 @@ QPolygonF KoColorSpace::estimatedTRCXYY() const
//boundaries for cmyka/laba have trouble getting the max values for Float, and are pretty awkward in general.
max = this->channels()[0]->getUIMax();
}
const KoColorSpace* xyzColorSpace = KoColorSpaceRegistry::instance()->colorSpace("XYZA", "F16");
const KoColorSpace* xyzColorSpace = KoColorSpaceRegistry::instance()->colorSpace("XYZA", "F32");
quint8 *data = new quint8[pixelSize()];
quint8 data2[8]; // xyza is 8 bytes per pixel.
quint8 data2[xyzColorSpace->pixelSize()];
// This is fixed to 5 since the maximum number of channels are 5 for CMYKA
QVector <float> channelValuesF(5);//for getting the coordinates.
......
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