summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbufferline.c2
-rw-r--r--src/glibext/linesegment.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/glibext/gbufferline.c b/src/glibext/gbufferline.c
index d8ed7ed..9d2ec51 100644
--- a/src/glibext/gbufferline.c
+++ b/src/glibext/gbufferline.c
@@ -1273,6 +1273,8 @@ const line_segment *g_buffer_line_get_segment_at(const GBufferLine *line, const
if (status)
result = g_buffer_line_get_segment_from_coord(line, &coord);
+ else
+ result = NULL;
return result;
diff --git a/src/glibext/linesegment.c b/src/glibext/linesegment.c
index 47ad9cc..e802dda 100644
--- a/src/glibext/linesegment.c
+++ b/src/glibext/linesegment.c
@@ -860,13 +860,13 @@ void draw_line_segment(const line_segment *segment, cairo_t *cr, gint *x, gint y
cairo_operator_t old; /* Sauvegarde avant changement */
const rendering_color_t *used_fg; /* Couleur d'impression utile */
- if (segment->text[0] == '\t' && segment->text[1] == '\0')
- goto small_sep;
-
selected = selection_list_has_segment_content(list, segment);
width = get_line_segment_width(segment);
+ if (segment->text[0] == '\t' && segment->text[1] == '\0')
+ goto small_sep;
+
/* Fond du texte */
if (selected)
{