[PATCH] riched20: add missing scroll bar update
Lei Zhang
thestig at google.com
Wed Aug 15 12:50:40 CDT 2007
Hi,
In Keynote (http://keynote.sf.net) some richedit controls do not
display the scroll bar initially. This patch adds a missing scroll bar
update to fix this problem.
-------------- next part --------------
From 5a4c543fdcce8171f1f7e4db8acded2958b9eee0 Mon Sep 17 00:00:00 2001
From: Lei Zhang <thestig at google.com>
Date: Wed, 15 Aug 2007 10:45:07 -0700
Subject: [PATCH] riched20: add missing scroll bar update
---
dlls/riched20/caret.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 24b65c0..76e2365 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -230,7 +230,8 @@ ME_MoveCaret(ME_TextEditor *editor)
{
int x, y, height;
- ME_WrapMarkedParagraphs(editor);
+ if (ME_WrapMarkedParagraphs(editor))
+ ME_UpdateScrollBar(editor);
ME_GetCursorCoordinates(editor, &editor->pCursors[0], &x, &y, &height);
if(editor->bHaveFocus)
{
--
1.4.1
More information about the wine-patches
mailing list