[xchat-gnome] 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] Bug 652867 - Don't try to render an empty string
- Date: Mon, 20 Jun 2011 12:26:50 +0000 (UTC)
commit 15dea9d62e5a6ceba6454e5d4428c12c8c07244a
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 e2746a9..1f57f38 100644
--- a/src/fe-gnome/xtext.c
+++ b/src/fe-gnome/xtext.c
@@ -2622,7 +2622,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]