From c6d4cd5d9f42251c20cfc9c80ac80389a39abfbe Mon Sep 17 00:00:00 2001 From: Mook Date: Mon, 25 Feb 2013 15:20:58 -0800 Subject: Editor: SCI_LINESCROLL: treat columns as signed --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index e5c997cf4..8ad36ef33 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -7414,7 +7414,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_LINESCROLL: ScrollTo(topLine + lParam); - HorizontalScrollTo(xOffset + wParam * vs.spaceWidth); + HorizontalScrollTo(xOffset + static_cast(wParam) * vs.spaceWidth); return 1; case SCI_SETXOFFSET: -- cgit v1.2.3