aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-html-editor-view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 5ca0dc0204..8039a5ce52 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3872,6 +3872,14 @@ html_editor_view_process_document_from_convertor (EHTMLEditorView *view,
first_child = webkit_dom_node_get_first_child (
WEBKIT_DOM_NODE (body));
+ if (!first_child) {
+ paragraph = e_html_editor_selection_get_paragraph_element (
+ selection, document, -1, 0);
+ first_child = webkit_dom_node_append_child (
+ WEBKIT_DOM_NODE (body),
+ WEBKIT_DOM_NODE (paragraph),
+ NULL);
+ }
webkit_dom_node_insert_before (
first_child,