From 2e285cf426f588438dd073b4ce8737f3c8ba8bd3 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Wed, 5 Jan 2011 00:28:26 +0000 Subject: =?UTF-8?q?fix=20a=20crash=20on=20resize=20of=20size=200=C3=970?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/windows.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/windows.py b/src/windows.py index 682d6487..744443b6 100644 --- a/src/windows.py +++ b/src/windows.py @@ -56,6 +56,8 @@ class Win(object): pass def _resize(self, height, width, y, x, parent_win): + if height == 0 or width == 0: + return self.height, self.width, self.x, self.y = height, width, x, y self._win = curses.newwin(height, width, y, x) -- cgit v1.2.3