console/libgnt/gntwidget.c

changeset 14909
d72792eb7575
parent 14898
107b971b39f2
child 14938
ee27e45919ef
--- a/console/libgnt/gntwidget.c	Sun Oct 29 01:32:04 2006 +0000
+++ b/console/libgnt/gntwidget.c	Sun Oct 29 03:43:15 2006 +0000
@@ -581,6 +581,10 @@
 		width--;
 		height--;
 	}
+	if (width <= 0)
+		width = widget->priv.width;
+	if (height <= 0)
+		height = widget->priv.height;
 
 	if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED))
 	{

mercurial