From 6135a827da54b5a8d2c470b2122ef8de44c8d755 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 8 Apr 2017 08:24:41 +0200 Subject: [PATCH] CComponentsItem: disable unused variable --- src/gui/components/cc_item.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index a0f914f0a..b783f82d8 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -118,11 +118,11 @@ void CComponentsItem::paintInit(bool do_save_bg) int sh_cdy = box_rad+sw+th; //height //adapt shadow corner dimensions if body dimensions are too small, use an offset if required - int sh_cdx_size_offset, sh_cdy_size_offset = 0; + int /*sh_cdx_size_offset = 0,*/ sh_cdy_size_offset = 0; if (sh_cdy*2 > dy) sh_cdy_size_offset = sh_cdy*2-dy; - if (sh_cdx*2 > dx) - sh_cdx_size_offset = sh_cdx*2-dx; +// if (sh_cdx*2 > dx) +// sh_cdx_size_offset = sh_cdx*2-dx; //handle shadow positions //...corner bottom right