Mercurial > pidgin
diff console/libgnt/gntwidget.c @ 14847:d478f3853671
[gaim-migrate @ 17616]
Fix bug #1582629. The terminal should now always go back to normal state after quitting from gaim-text.
committer: Tailor Script <tailor@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Sun, 29 Oct 2006 03:43:15 +0000 |
| parents | bfcdd361357e |
| children | 70623f0d5cdc |
line wrap: on
line diff
--- 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)) {
