Huw Davies : riched20: Remove some over-zealous calls to clear the insert style.

Alexandre Julliard julliard at winehq.org
Fri Dec 6 10:54:16 CST 2013


Module: wine
Branch: master
Commit: f13fe24e9e3aef3c194fbba10a2396d979e585e9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f13fe24e9e3aef3c194fbba10a2396d979e585e9

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Dec  6 11:51:23 2013 +0000

riched20: Remove some over-zealous calls to clear the insert style.

It's cleared correctly, if the selection actually changes, in the
selection change notification handler.

---

 dlls/riched20/caret.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index fd7034d..33ea532 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -128,7 +128,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
     ME_SetCursorToStart(editor, &editor->pCursors[1]);
     ME_SetCursorToEnd(editor, &editor->pCursors[0]);
     ME_InvalidateSelection(editor);
-    ME_ClearTempStyle(editor);
     return len + 1;
   }
 
@@ -151,7 +150,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
           editor->pCursors[1] = editor->pCursors[0];
           ME_Repaint(editor);
       }
-      ME_ClearTempStyle(editor);
       return end;
     }
 
@@ -180,7 +178,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
     ME_SetCursorToEnd(editor, &editor->pCursors[0]);
     editor->pCursors[1] = editor->pCursors[0];
     ME_InvalidateSelection(editor);
-    ME_ClearTempStyle(editor);
     return len;
   }
 
@@ -1132,7 +1129,6 @@ void ME_LButtonDown(ME_TextEditor *editor, int x, int y, int clickNum)
   ME_InvalidateSelection(editor);
   ITextHost_TxShowCaret(editor->texthost, FALSE);
   ME_ShowCaret(editor);
-  ME_ClearTempStyle(editor);
   ME_SendSelChange(editor);
 }
 




More information about the wine-cvs mailing list