From 6c7c442ad2a45790f78548e9aceac47d871699cc Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 2 Aug 2018 16:04:11 +0300 Subject: [PATCH] Remove excess RGB -> HSV -> RGB transformation. Fixes #5043. --- Telegram/SourceFiles/boxes/edit_color_box.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/edit_color_box.cpp b/Telegram/SourceFiles/boxes/edit_color_box.cpp index f5bb7286b..49d9e489e 100644 --- a/Telegram/SourceFiles/boxes/edit_color_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_color_box.cpp @@ -669,7 +669,10 @@ void EditColorBox::prepare() { } }, lifetime()); - updateFromControls(); + updateRGBFields(); + updateHSVFields(); + updateResultField(); + update(); } void EditColorBox::setInnerFocus() {