From 5d173694e7333227e1dc03f4c51d7b1701b67306 Mon Sep 17 00:00:00 2001 From: ruevs Date: Tue, 24 Nov 2020 19:36:26 +0200 Subject: [PATCH] Win32: Remove sscheck on SetScrollInfo - it returns the scrollbar position ...which can be zero. Fixes: https://github.com/solvespace/solvespace/issues/817 --- src/platform/guiwin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/guiwin.cpp b/src/platform/guiwin.cpp index cfa4b7ea..5a9f09de 100644 --- a/src/platform/guiwin.cpp +++ b/src/platform/guiwin.cpp @@ -1342,7 +1342,7 @@ public: si.nMin = (UINT)(min * SCROLLBAR_UNIT); si.nMax = (UINT)(max * SCROLLBAR_UNIT); si.nPage = (UINT)(pageSize * SCROLLBAR_UNIT); - sscheck(SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE)); + SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE); // Returns scrollbar position } double GetScrollbarPosition() override { @@ -1366,7 +1366,7 @@ public: return; si.nPos = (int)(pos * SCROLLBAR_UNIT); - sscheck(SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE)); + SetScrollInfo(hWindow, SB_VERT, &si, /*redraw=*/TRUE); // Returns scrollbar position // Windows won't synthesize a WM_VSCROLL for us here. if(onScrollbarAdjusted) {