Alexander Nicolaysen Sørnes : wordpad: Fix width when text break = margins.

Alexandre Julliard julliard at winehq.org
Mon Jan 14 09:33:28 CST 2008


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

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jan 13 20:26:40 2008 +0100

wordpad: Fix width when text break = margins.

---

 programs/wordpad/print.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c
index 4f8f2e2..e44039e 100644
--- a/programs/wordpad/print.c
+++ b/programs/wordpad/print.c
@@ -185,7 +185,7 @@ void target_device(HWND hMainWnd, DWORD wordWrap)
     if(wordWrap == ID_WORDWRAP_MARGIN)
     {
         RECT rc = get_print_rect(hdc);
-        width = rc.right;
+        width = rc.right - rc.left;
     }
 
     if(!hdc)




More information about the wine-cvs mailing list