Eric Pouech : richedit: Fixed a bogus computation of paragraph indentation.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 07:54:59 CDT 2008


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Mar 23 09:22:30 2008 +0100

richedit: Fixed a bogus computation of paragraph indentation.

---

 dlls/riched20/wrap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index cd052a7..a657b03 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -377,7 +377,7 @@ static void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp, DWORD begino
 /*   wc.para_style = tp->member.para.style; */
   wc.style = NULL;
   wc.nFirstMargin = ME_twips2pointsX(c, tp->member.para.pFmt->dxStartIndent) + beginofs;
-  wc.nLeftMargin = wc.nFirstMargin + ME_twips2pointsX(c, tp->member.para.pFmt->dxOffset) + beginofs;
+  wc.nLeftMargin = wc.nFirstMargin + ME_twips2pointsX(c, tp->member.para.pFmt->dxOffset);
   wc.nRightMargin = ME_twips2pointsX(c, tp->member.para.pFmt->dxRightIndent);
   wc.nRow = 0;
   wc.pt.x = 0;




More information about the wine-cvs mailing list