Commit 163e9d1d authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

richedit: Revert patch that introduced a test that fails on all platforms.

parent ea20d6b7
......@@ -674,14 +674,9 @@ void ME_Scroll(ME_TextEditor *editor, int value, int type)
si.fMask |= SIF_DISABLENOSCROLL;
si.nMin = 0;
si.nMax = editor->nTotalLength;
if (ME_GetTextLength(editor) > 0)
{
si.nMax = editor->nTotalLength;
si.nPage = editor->sizeWindow.cy;
} else {
si.nMax = si.nPage = 0;
}
si.nPage = editor->sizeWindow.cy;
TRACE("min=%d max=%d page=%d\n", si.nMin, si.nMax, si.nPage);
SetScrollInfo(hWnd, SB_VERT, &si, TRUE);
......
......@@ -2038,16 +2038,6 @@ static void test_EM_SCROLL(void)
int expr; /* expected return value */
HWND hwndRichEdit = new_richedit(NULL);
int y_before, y_after; /* units of lines of text */
SCROLLINFO si;
/* Empty richedit should have scroll range of 0 */
si.cbSize = sizeof(si);
si.fMask = SIF_RANGE | SIF_PAGE | SIF_POS;
GetScrollInfo(hwndRichEdit, SB_VERT, &si);
ok(si.nMin == 0, "si.nMin == %d, expected 0\n", si.nMin);
ok(si.nMax == 0, "si.nMax == %d, expected 0\n", si.nMax);
ok(si.nPos == 0, "si.nPos == %d, expected 0\n", si.nPos);
ok(si.nPage == 0, "si.nPage == %d, expected 0\n", si.nPage);
/* test a richedit box containing a single line of text */
SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) "a");/* one line of text */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment