From dabba341773176eaf9d68894d3f6960de0e55b0d Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 5 Oct 2016 15:23:07 +0200 Subject: [PATCH] CComponentsButton: remove clear()-methode and initVarButton() clear() killed all button object with all key values and key properties. So return values of messeage objects was killed. initVarButton() contains Oobjekt intits to already existant object. Bad idea, if we init again or pre init with NULL. Mode pass was missed. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/0f6e8e1f5d027c548148fda176f503901d3fd5b3 Author: Thilo Graf Date: 2016-10-05 (Wed, 05 Oct 2016) --- src/gui/components/cc_frm_button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 987e07035..216a9879f 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -293,8 +293,7 @@ void CComponentsButton::paint(bool do_save_bg) void CComponentsButton::enableShadow(int mode, const int& shadow_width, bool force_paint) { - clear(); shadow_w = shadow_width; shadow_force = force_paint; - initVarButton(x, y, width, height, cc_btn_capt, cc_btn_icon, cc_parent, cc_item_selected, cc_item_enabled, mode, col_frame, col_body, col_shadow); + shadow = mode; }