From 5b3f266d4de340bf8a881b37d7e5097d2eda16ab Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Aug 2013 12:51:42 +1000 Subject: Move wrapping, edge and visual adjustments from Editor to ViewStyle. Move printing parameters into a separate struct. --- win32/ScintillaWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index ab1723924..52f8fa4a1 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1393,7 +1393,7 @@ bool ScintillaWin::ModifyScrollBars(int nMax, int nPage) { if (horizEndPreferred < 0) horizEndPreferred = 0; unsigned int pageWidth = rcText.Width(); - if (!horizontalScrollBarVisible || (wrapState != eWrapNone)) + if (!horizontalScrollBarVisible || Wrapping()) pageWidth = horizEndPreferred + 1; sci.fMask = SIF_PAGE | SIF_RANGE; GetScrollInfo(SB_HORZ, &sci); -- cgit v1.2.3