From: Christophe CURIS <christophe.cu...@free.fr>

As pointed by coverity, the case 'index < 0' cannot be true because it was
already earlier and handled with an early return.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 WINGs/wpopupbutton.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c
index ef7af09..1a8156b 100644
--- a/WINGs/wpopupbutton.c
+++ b/WINGs/wpopupbutton.c
@@ -344,8 +344,6 @@ static void paintMenuEntry(PopUpButton * bPtr, int index, 
int highlight)
        if (!highlight) {
                XClearArea(scr->display, bPtr->menuView->window, 0, index * 
itemHeight, width, itemHeight, False);
                return;
-       } else if (index < 0 && bPtr->flags.pullsDown) {
-               return;
        }
 
        XFillRectangle(scr->display, bPtr->menuView->window, 
WMColorGC(scr->white),
-- 
1.9.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to