]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
don't check top when drawing
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 20 Mar 2013 16:36:31 +0000 (17:36 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 20 Mar 2013 16:49:04 +0000 (17:49 +0100)
checkbox.c

index 00ef286bfa10bb8c97ee0994d033062f6475d951..159076240eacebc78a2a144b7717f13303f9353e 100644 (file)
@@ -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;