[vte] Bug 613528 - computed size is wrong with low width and height values in vte_terminal_size_allocate
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Bug 613528 - computed size is wrong with low width and height values in vte_terminal_size_allocate
- Date: Mon, 22 Mar 2010 02:28:32 +0000 (UTC)
commit 5cd582723d55a487d8117adbae28f7bf0fd76da3
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Mar 21 22:26:59 2010 -0400
Bug 613528 - computed size is wrong with low width and height values in vte_terminal_size_allocate
src/vte.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index ed05597..fd07f1f 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8249,6 +8249,8 @@ vte_terminal_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
terminal->char_width;
height = (allocation->height - (terminal->pvt->inner_border.top + terminal->pvt->inner_border.bottom)) /
terminal->char_height;
+ width = MAX(width, 1);
+ height = MAX(height, 1);
_vte_debug_print(VTE_DEBUG_WIDGET_SIZE,
"[Terminal %p] Sizing window to %dx%d (%ldx%ld).\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]