From: Miroslav Lichvar Date: Wed, 20 Mar 2013 16:36:31 +0000 (+0100) Subject: don't check top when drawing X-Git-Tag: r0-52-15~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d1e2567f270af020986e90b9d626a3c65b0aed1;p=thirdparty%2Fnewt.git don't check top when drawing --- diff --git a/checkbox.c b/checkbox.c index 00ef286..1590762 100644 --- a/checkbox.c +++ b/checkbox.c @@ -183,7 +183,7 @@ void newtCheckboxSetFlags(newtComponent co, int flags, enum newtFlagsSense sense static void cbDraw(newtComponent c) { struct checkbox * cb = c->data; - if (c->top == -1 || !c->isMapped) return; + if (!c->isMapped) return; if (cb->flags & NEWT_FLAG_DISABLED) { cb->inactive = NEWT_COLORSET_DISENTRY;