]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
pay attention to isMapped
authorewt <ewt>
Sat, 1 Aug 1998 15:45:34 +0000 (15:45 +0000)
committerewt <ewt>
Sat, 1 Aug 1998 15:45:34 +0000 (15:45 +0000)
label.c

diff --git a/label.c b/label.c
index f7e13945cdfefc60d4198b28f7c10f28130830c8..f1a9cebbf965c2ac72787f2a69058967ffef7d1f 100644 (file)
--- a/label.c
+++ b/label.c
@@ -64,7 +64,7 @@ void newtLabelSetText(newtComponent co, const char * text) {
 static void labelDraw(newtComponent co) {
     struct label * la = co->data;
 
-    if (co->top == -1) return;
+    if (co->isMapped == -1) return;
 
     SLsmg_set_color(COLORSET_LABEL);