Commit b3f850e6 authored by Paolo Borelli's avatar Paolo Borelli
parent f18bbdff
...@@ -825,7 +825,7 @@ gtk_text_layout_draw (GtkTextLayout *layout, ...@@ -825,7 +825,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
GSList *cursor_list; GSList *cursor_list;
GtkTextRenderer *text_renderer; GtkTextRenderer *text_renderer;
GtkTextIter selection_start, selection_end; GtkTextIter selection_start, selection_end;
gboolean have_selection = FALSE; gboolean have_selection;
GSList *line_list; GSList *line_list;
GSList *tmp_list; GSList *tmp_list;
GList *tmp_widgets; GList *tmp_widgets;
...@@ -852,10 +852,9 @@ gtk_text_layout_draw (GtkTextLayout *layout, ...@@ -852,10 +852,9 @@ gtk_text_layout_draw (GtkTextLayout *layout,
gtk_text_layout_wrap_loop_start (layout); gtk_text_layout_wrap_loop_start (layout);
if (gtk_text_buffer_get_selection_bounds (layout->buffer, have_selection = gtk_text_buffer_get_selection_bounds (layout->buffer,
&selection_start, &selection_start,
&selection_end)) &selection_end);
have_selection = TRUE;
tmp_list = line_list; tmp_list = line_list;
while (tmp_list != NULL) while (tmp_list != NULL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment