[vte] draw: Pass the known string length instead of -1
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] draw: Pass the known string length instead of -1
- Date: Sun, 13 Dec 2015 18:09:22 +0000 (UTC)
commit ec28a7535f45f525ea966cad28a594a01daf4236
Author: Christian Persch <chpe gnome org>
Date: Sun Dec 13 19:08:23 2015 +0100
draw: Pass the known string length instead of -1
src/vtedraw.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vtedraw.cc b/src/vtedraw.cc
index 0409b76..ed9d9ae 100644
--- a/src/vtedraw.cc
+++ b/src/vtedraw.cc
@@ -671,7 +671,7 @@ font_info_get_unistr_info (struct font_info *info,
g_string_set_size (info->string, 0);
_vte_unistr_append_to_string (c, info->string);
- pango_layout_set_text (info->layout, info->string->str, -1);
+ pango_layout_set_text (info->layout, info->string->str, info->string->len);
pango_layout_get_extents (info->layout, NULL, &logical);
uinfo->width = PANGO_PIXELS_CEIL (logical.width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]