[evolution] Undoing the style change should act like the separate history event



commit 7082cee57849dc243d55874543e292f331b8d862
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Aug 23 10:03:09 2016 +0200

    Undoing the style change should act like the separate history event
    
    Previously we were jumping straight to the next item. This could cause problems
    and also try to be consistent with LO Writer.

 .../web-extension/e-editor-undo-redo-manager.c     |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c 
b/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
index c28bab7..f72cd86 100644
--- a/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
+++ b/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
@@ -2458,15 +2458,6 @@ e_editor_undo_redo_manager_undo (EEditorUndoRedoManager *manager)
                case HISTORY_STRIKETHROUGH:
                case HISTORY_UNDERLINE:
                case HISTORY_FONT_SIZE:
-                       if (event_selection_was_collapsed (event)) {
-                               if (history->next) {
-                                       manager->priv->history = history->next;
-                                       e_editor_undo_redo_manager_undo (manager);
-                               }
-                               manager->priv->operation_in_progress = FALSE;
-                               g_object_unref (editor_page);
-                               return;
-                       }
                case HISTORY_ALIGNMENT:
                case HISTORY_BLOCK_FORMAT:
                case HISTORY_MONOSPACE:


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