[evolution/gnome-3-16] Bug 749613 - Crash when trying to wrap non-existing node



commit f207c6467ce990c85233abcd3a80729f78a168a4
Author: Tomas Popela <tpopela redhat com>
Date:   Wed May 20 08:36:54 2015 +0200

    Bug 749613 - Crash when trying to wrap non-existing node

 e-util/e-html-editor-selection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index f1317d2..511f8b9 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6306,7 +6306,7 @@ wrap_lines (EHTMLEditorSelection *selection,
                }
 
                /* wrap until we have something */
-               while ((length_left + line_length) > word_wrap_length) {
+               while (node && (length_left + line_length) > word_wrap_length) {
                        gint max_length;
 
                        max_length = word_wrap_length - line_length;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]