[evolution] Bug 749613 - Crash when trying to wrap non-existing node
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 749613 - Crash when trying to wrap non-existing node
- Date: Wed, 20 May 2015 06:37:24 +0000 (UTC)
commit a024455cb46adc38e7161c31649a6f337be07b42
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]