[evolution] EComposerPrivate - Caret is below the quoted content when replying on HTML message with active signa



commit eaf86d9cb93700cb8460499aa0d3fd50ba3356f9
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Feb 2 14:46:02 2015 +0100

    EComposerPrivate - Caret is below the quoted content when replying on HTML message with active signature 
and choosing the Don't lose formatting option

 composer/e-composer-private.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 15b7aa9..bd3fd3a 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -977,11 +977,14 @@ composer_move_caret (EMsgComposer *composer)
                                        NULL);
                        }
                } else {
-                       webkit_dom_node_insert_before (
-                               WEBKIT_DOM_NODE (body),
-                               WEBKIT_DOM_NODE (element),
-                               WEBKIT_DOM_NODE (signature),
-                               NULL);
+                       if (start_bottom)
+                               webkit_dom_node_insert_before (
+                                       WEBKIT_DOM_NODE (body),
+                                       WEBKIT_DOM_NODE (element),
+                                       WEBKIT_DOM_NODE (signature),
+                                       NULL);
+                       else
+                               element = WEBKIT_DOM_ELEMENT (body);
                }
        } else {
                if (!element && top_signature) {


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