Commit cdbab8bc authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

Added a check for empty scrollbar range.

parent d5749b45
......@@ -310,6 +310,7 @@ void ME_UpdateScrollBar(ME_TextEditor *editor, int ypos)
GetScrollInfo(hWnd, SB_VERT, &si);
if (ypos < 0) {
if (si.nMax<1) si.nMax = 1;
perc = 1.0*si.nPos/si.nMax;
ypos = perc*overflow;
}
......
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