Krzysztof Foltman : riched20:
Make EM_LINELENGTH work correctly for non-final paragraphs containing
exactly one screen line .
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 3 15:58:35 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: f07740b28be46ce0420eea4436e616b5dc8fee34
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f07740b28be46ce0420eea4436e616b5dc8fee34
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Thu Aug 3 20:37:45 2006 +0200
riched20: Make EM_LINELENGTH work correctly for non-final paragraphs containing exactly one screen line.
---
dlls/riched20/editor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index c636023..7389407 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -2154,8 +2154,8 @@ LRESULT WINAPI RichEditANSIWndProc(HWND
item = ME_FindItemAtOffset(editor, diRun, wParam, NULL);
item = ME_RowStart(item);
nThisLineOfs = ME_CharOfsFromRunOfs(editor, ME_FindItemFwd(item, diRun), 0);
- item_end = ME_FindItemFwd(item, diStartRow);
- if (item_end)
+ item_end = ME_FindItemFwd(item, diStartRowOrParagraphOrEnd);
+ if (item_end->type == diStartRow)
nNextLineOfs = ME_CharOfsFromRunOfs(editor, ME_FindItemFwd(item_end, diRun), 0);
else
nNextLineOfs = ME_FindItemFwd(item, diParagraphOrEnd)->member.para.nCharOfs
More information about the wine-cvs
mailing list