Commit 780de342 authored by Nicholas LaPointe's avatar Nicholas LaPointe

Fix crash when attempting to use a document that has a 16-bit float XYZ color space

XyzF16ColorSpace::colorDepthId() would return Float32BitsColorDepthID. This caused Krita to segfault when you created a document using the XYZ color model with 16-bit float depth.
It was possible to convert a layer to use the same properties, but an assertion would fail when trying to reopen it.

Differential Revision:
parent dd83f998
......@@ -43,7 +43,7 @@ public:
virtual KoID colorDepthId() const
return Float32BitsColorDepthID;
return Float16BitsColorDepthID;
virtual KoColorSpace *clone() const;
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