As reported by Coverity, the function 'customSetPalette' is making a call
to 'WMGetPopUpButtonSelectedItem', but this function does nothing to the
widget but only return a value, which is not used at all, so this patch
removes the call to the function.

Signed-off-by: Christophe CURIS <[email protected]>
---
 WINGs/wcolorpanel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index f23c91d..8aea1df 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -2867,8 +2867,6 @@ static void customSetPalette(W_ColorPanel * panel)
 
        panel->palXRatio = (double)(panel->customPaletteImg->width) / 
(double)(customPaletteWidth);
        panel->palYRatio = (double)(panel->customPaletteImg->height) / 
(double)(customPaletteHeight);
-
-       WMGetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn);
 }
 
 static void customPalettePositionSelection(W_ColorPanel * panel, int x, int y)
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to