summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcolorspace.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-18 15:19:06 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-19 09:31:35 +0200
commitdddd0c3ad80b08e4e7775095e51995f360b5e336 (patch)
tree2506426b25aa5313f6f58692bd040dbd6bc17d89 /src/gui/painting/qcolorspace.cpp
parentcdfafec01bc13bfe730a30893a5ade5fd2d238e6 (diff)
Add error message on unaligned profile inputs
Pick-to: 5.15 Task-number: QTBUG-84267 Change-Id: I7ec2100455bd0178cdff0de2d24abbe6c19f812f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/painting/qcolorspace.cpp')
-rw-r--r--src/gui/painting/qcolorspace.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qcolorspace.cpp b/src/gui/painting/qcolorspace.cpp
index 930e5aec87..43efdc1166 100644
--- a/src/gui/painting/qcolorspace.cpp
+++ b/src/gui/painting/qcolorspace.cpp
@@ -666,6 +666,9 @@ QByteArray QColorSpace::iccProfile() const
If the ICC profile is not supported an invalid QColorSpace is returned
where you can still read the original ICC profile using iccProfile().
+ \note If the QByteArray data is created from external sources it should be
+ at least 4 byte aligned.
+
\sa iccProfile()
*/
QColorSpace QColorSpace::fromIccProfile(const QByteArray &iccProfile)