diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index 4f8f2e2c4e6..e44039e91fc 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)