[evolution/webkit-composer: 91/185] Fix handling citation in EEditorSelection::get_has_style()



commit 65e02b2ea964f2b75c8a8ef88099ad552b8e47c0
Author: Dan Vrátil <dvratil redhat com>
Date:   Sun Dec 2 12:27:02 2012 +0100

    Fix handling citation in EEditorSelection::get_has_style()

 e-util/e-editor-selection.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/e-util/e-editor-selection.c b/e-util/e-editor-selection.c
index 2cd5079..f370e62 100644
--- a/e-util/e-editor-selection.c
+++ b/e-util/e-editor-selection.c
@@ -132,7 +132,8 @@ get_has_style (EEditorSelection *selection,
                element_tag = webkit_dom_element_get_tag_name (element);
 
                if (g_ascii_strncasecmp (style_tag, "citation", 8) == 0) {
-                       result = ((tag_len == 10 /* strlen ("blockquote") */) &&
+                       accept_citation = TRUE;
+                       result = ((strlen (element_tag) == 10 /* strlen ("blockquote") */) &&
                                (g_ascii_strncasecmp (element_tag, "blockquote", 10) == 0));
                } else {
                        result = ((tag_len == strlen (element_tag)) &&


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