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



commit 63054b1245027f4d41ac0db1409c7811d3f269f6
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 files changed, 2 insertions(+), 1 deletions(-)
---
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]