Phil Krylov : riched20: Removed a useless check in painting code.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 12 06:43:16 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 777d9bfacd1fc4433d6c37bb107debd6b894d523
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=777d9bfacd1fc4433d6c37bb107debd6b894d523

Author: Phil Krylov <phil at newstar.rinet.ru>
Date:   Thu Jan 12 11:54:37 2006 +0100

riched20: Removed a useless check in painting code.

---

 dlls/riched20/paint.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index 94f0bf3..6e4cfb2 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -141,13 +141,7 @@ static void ME_MarkSelectionForRepaint(M
 void ME_Repaint(ME_TextEditor *editor)
 {
   ME_Cursor *pCursor = &editor->pCursors[0];
-  ME_DisplayItem *pRun = NULL;
-  int nOffset = -1;
-  int nCharOfs = ME_CharOfsFromRunOfs(editor, pCursor->pRun, pCursor->nOffset);
-  
-  ME_RunOfsFromCharOfs(editor, nCharOfs, &pRun, &nOffset);
-  assert(pRun == pCursor->pRun);
-  assert(nOffset == pCursor->nOffset);
+
   ME_MarkSelectionForRepaint(editor);
   if (ME_WrapMarkedParagraphs(editor)) {
     ME_UpdateScrollBar(editor);




More information about the wine-cvs mailing list