Dylan Smith : richedit: Added missing return to ME_EnsureVisible.

Alexandre Julliard julliard at winehq.org
Tue Jul 21 09:34:00 CDT 2009


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

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Tue Jul 21 00:22:12 2009 -0400

richedit: Added missing return to ME_EnsureVisible.

The missing return was to prevent automatic vertically scrolling when
style for it is not set, but is set for the horizontal scrollbar. I
initially missed this by testing with no autoscrolling on either
scrollbar.

---

 dlls/riched20/paint.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index 2c1c9b9..4b5fed1 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -1263,7 +1263,10 @@ void ME_EnsureVisible(ME_TextEditor *editor, ME_Cursor *pCursor)
       x = editor->horz_si.nPos;
 
     if (~editor->styleFlags & ES_AUTOVSCROLL)
+    {
       ME_HScrollAbs(editor, x);
+      return;
+    }
   } else {
     if (~editor->styleFlags & ES_AUTOVSCROLL)
       return;




More information about the wine-cvs mailing list