Huw Davies : riched20: Simplify call to ME_StreamOutRTFParaProps().

Alexandre Julliard julliard at winehq.org
Fri Oct 14 13:46:55 CDT 2016


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Oct 14 10:05:05 2016 +0100

riched20: Simplify call to ME_StreamOutRTFParaProps().

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/writer.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c
index fa20215..d5563a1 100644
--- a/dlls/riched20/writer.c
+++ b/dlls/riched20/writer.c
@@ -1012,7 +1012,7 @@ static BOOL ME_StreamOutRTF(ME_TextEditor *editor, ME_OutStream *pStream,
                             const ME_Cursor *start, int nChars, int dwFormat)
 {
   ME_Cursor cursor = *start;
-  ME_DisplayItem *prev_para = cursor.pPara;
+  ME_DisplayItem *prev_para = NULL;
   ME_Cursor endCur = cursor;
 
   ME_MoveCursorChars(editor, &endCur, nChars, TRUE);
@@ -1037,9 +1037,6 @@ static BOOL ME_StreamOutRTF(ME_TextEditor *editor, ME_OutStream *pStream,
 
   /* TODO: section formatting properties */
 
-  if (!ME_StreamOutRTFParaProps(editor, pStream, cursor.pPara))
-    return FALSE;
-
   do {
     if (cursor.pPara != prev_para)
     {




More information about the wine-cvs mailing list