[vte/wip/egmont/bidi: 47/104] segfault
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 47/104] segfault
- Date: Wed, 29 May 2019 08:37:39 +0000 (UTC)
commit 66fffd6076b3a192976af07dccfa2495c6033c63
Author: Egmont Koblinger <egmont gmail com>
Date: Wed Aug 29 00:53:06 2018 +0200
segfault
src/vte.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index ddb4d2e9..78ef0a67 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9238,7 +9238,7 @@ Terminal::paint_cursor()
viscol = bidimap[col].log2vis;
item.c = (cell && cell->c) ? cell->c : ' ';
item.columns = item.c == '\t' ? 1 : cell ? cell->attr.columns() : 1;
- item.x = (viscol - (bidimap[viscol].vis_rtl ? cell->attr.columns() - 1 : 0)) * width;
+ item.x = (viscol - ((cell && bidimap[viscol].vis_rtl) ? cell->attr.columns() - 1 : 0)) * width;
item.y = row_to_pixel(drow);
item.mirror = bidimap[viscol].vis_rtl;
item.box_mirror = (row_data && (row_data->attr.bidi_flags & VTE_BIDI_BOX_MIRROR));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]