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. --- gtk/ScintillaGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index b02c7202d..8c2d0570b 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1096,7 +1096,7 @@ PRectangle ScintillaGTK::GetClientRectangle() { PRectangle rc = wMain.GetClientPosition(); if (verticalScrollBarVisible) rc.right -= verticalScrollBarWidth; - if (horizontalScrollBarVisible && (wrapState == eWrapNone)) + if (horizontalScrollBarVisible && !Wrapping()) rc.bottom -= horizontalScrollBarHeight; // Move to origin rc.right -= rc.left; @@ -1676,7 +1676,7 @@ void ScintillaGTK::Resize(int width, int height) { // These allocations should never produce negative sizes as they would wrap around to huge // unsigned numbers inside GTK+ causing warnings. - bool showSBHorizontal = horizontalScrollBarVisible && (wrapState == eWrapNone); + bool showSBHorizontal = horizontalScrollBarVisible && !Wrapping(); GtkAllocation alloc; if (showSBHorizontal) { -- cgit v1.2.3