[xchat-gnome/xchat-0-26-3] Bug 652867 - Don't try to render an empty string
- From: Ritesh Khadgaray <rkhadgaray src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xchat-gnome/xchat-0-26-3] Bug 652867 - Don't try to render an empty string
- Date: Mon, 20 Jun 2011 12:27:05 +0000 (UTC)
commit 8944f51bd66d294c6d55eb5a52d6a309d12a72a4
Author: Bill Nottingham <notting redhat com>
Date: Mon Jun 20 17:44:00 2011 +0530
Bug 652867 - Don't try to render an empty string
src/fe-gnome/xtext.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c
index 06b00c5..6cba1d5 100644
--- a/src/fe-gnome/xtext.c
+++ b/src/fe-gnome/xtext.c
@@ -2645,7 +2645,7 @@ gtk_xtext_render_flush (GtkXText * xtext, int x, int y, unsigned char *str,
str_width = backend_get_text_width (xtext, str, len, is_mb);
- if (xtext->dont_render2)
+ if (xtext->dont_render2 || str_width < 1)
return str_width;
/* roll-your-own clipping (avoiding XftDrawString is always good!) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]