From 7f619e7770589f767d79d4f369cca764c6563092 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 12 Mar 2023 21:14:45 +0100 Subject: [PATCH] colordevice: default the simple transformations to 1 --- src/colors/colordevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/colors/colordevice.cpp b/src/colors/colordevice.cpp index 6f8cc3bbc4..d50c226268 100644 --- a/src/colors/colordevice.cpp +++ b/src/colors/colordevice.cpp @@ -54,14 +54,14 @@ public: uint temperature = 6500; std::unique_ptr temperatureStage; - QVector3D temperatureFactors; + QVector3D temperatureFactors = QVector3D(1, 1, 1); std::unique_ptr brightnessStage; - QVector3D brightnessFactors; + QVector3D brightnessFactors = QVector3D(1, 1, 1); std::unique_ptr calibrationStage; std::shared_ptr transformation; // used if only limited per-channel multiplication is available - QVector3D simpleTransformation; + QVector3D simpleTransformation = QVector3D(1, 1, 1); }; void ColorDevicePrivate::rebuildPipeline()