[evolution] Bug 753702 - Changing mail composer to plaintext mode and back to HTML mode changes the font family
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 753702 - Changing mail composer to plaintext mode and back to HTML mode changes the font family
- Date: Tue, 25 Aug 2015 10:56:27 +0000 (UTC)
commit 8aa930e0634b22afa38753816be824d7b1622140
Author: Tomas Popela <tpopela redhat com>
Date: Tue Aug 25 12:54:49 2015 +0200
Bug 753702 - Changing mail composer to plaintext mode and back to HTML mode changes the font family
Swap the rename_attribute calls to achieve the right behaviour.
e-util/e-html-editor-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 3a87827..ebe70e1 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -7002,14 +7002,14 @@ set_monospace_font_family_on_body (WebKitDOMElement *body,
* font-family style to the body, so WebKit will know about it and will
* avoid the described behaviour. */
if (!html_mode) {
- rename_attribute (WEBKIT_DOM_ELEMENT (body), "style", "data-style");
+ rename_attribute (WEBKIT_DOM_ELEMENT (body), "data-style", "style");
webkit_dom_element_set_attribute (
WEBKIT_DOM_ELEMENT (body),
"style",
"font-family: Monospace;",
NULL);
} else {
- rename_attribute (WEBKIT_DOM_ELEMENT (body), "data-style", "style");
+ rename_attribute (WEBKIT_DOM_ELEMENT (body), "style", "data-style");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]