[evolution/wip/tpopela/freeze-fixes: 2/7] EHTMLEditorActions - Remove debug prints that were introduces with undo/redo implementation
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/tpopela/freeze-fixes: 2/7] EHTMLEditorActions - Remove debug prints that were introduces with undo/redo implementation
- Date: Wed, 18 Mar 2015 14:10:52 +0000 (UTC)
commit 4cfab4ed1a2980579aadacbe57366a418222eebc
Author: Tomas Popela <tpopela redhat com>
Date: Wed Mar 18 13:55:08 2015 +0100
EHTMLEditorActions - Remove debug prints that were introduces with undo/redo implementation
e-util/e-html-editor-actions.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index c5235b8..192d077 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -546,18 +546,16 @@ action_cut_cb (GtkAction *action,
ev = g_new0 (EHTMLEditorViewHistoryEvent, 1);
ev->type = HISTORY_DELETE;
- printf ("HISTORY: CUT ; \n");
range = webkit_dom_dom_selection_get_range_at (dom_selection, 0, NULL);
e_html_editor_selection_get_selection_coordinates (
selection, &ev->before.start.x, &ev->before.start.y, &ev->before.end.x, &ev->before.end.y);
range = webkit_dom_dom_selection_get_range_at (dom_selection, 0, NULL);
- if (webkit_dom_range_get_collapsed (range, NULL)) {
- g_warning ("THIS SHOULD NOT HAPPEN!\n");
- } else {
- fragment = webkit_dom_range_clone_contents (range, NULL);
- }
+ if (webkit_dom_range_get_collapsed (range, NULL))
+ return;
+
/* Save the fragment. */
+ fragment = webkit_dom_range_clone_contents (range, NULL);
ev->data.fragment = g_object_ref (fragment);
webkit_web_view_cut_clipboard (WEBKIT_WEB_VIEW (view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]