[evolution/wip/webkit2] Bug 749613 - Crash when trying to wrap non-existing node
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 749613 - Crash when trying to wrap non-existing node
- Date: Thu, 25 Feb 2016 15:25:55 +0000 (UTC)
commit 1eacaaff3b33273beb54014d7ea506b949cde9be
Author: Tomas Popela <tpopela redhat com>
Date: Thu Feb 25 15:36:14 2016 +0100
Bug 749613 - Crash when trying to wrap non-existing node
.../e-html-editor-selection-dom-functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 7b80db9..9767ea2 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -2333,7 +2333,7 @@ wrap_lines (WebKitDOMDocument *document,
}
/* 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]