From 9801c3100c6a7242fce1f7eba3ab55056b553aa2 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 19 Mar 2017 15:58:31 +0100 Subject: [PATCH] CColorChooser: fix missing rewrite current values to *value[selected] Supplement to commit: CColorChooser: fix compile conversion warnings 3b5cd00bf4af7ef65fad1490c346b249d5ce2365 --- src/gui/widget/colorchooser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widget/colorchooser.cpp b/src/gui/widget/colorchooser.cpp index 589f49fe7..5eef2d02e 100644 --- a/src/gui/widget/colorchooser.cpp +++ b/src/gui/widget/colorchooser.cpp @@ -197,6 +197,7 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &) val += 2; else val = 100; + (*value[selected]) = (uint8_t)val; paintSlider(x + 10, y + hheight + mheight * selected, value[selected], colorchooser_names[selected], iconnames[selected], true); setColor(); @@ -211,6 +212,7 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &) val -= 2; else val = 0; + (*value[selected]) = (uint8_t)val; paintSlider(x + 10, y + hheight + mheight * selected, value[selected], colorchooser_names[selected], iconnames[selected], true); setColor();