diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 |
| commit | 5b3f266d4de340bf8a881b37d7e5097d2eda16ab (patch) | |
| tree | 97f30d84fbd3d4d38c7a37d9ef03daa6e7db3932 /gtk | |
| parent | c7f250a5cca5545e7858786a0ca13620b87b7ada (diff) | |
| download | scintilla-mirror-5b3f266d4de340bf8a881b37d7e5097d2eda16ab.tar.gz | |
Move wrapping, edge and visual adjustments from Editor to ViewStyle.
Move printing parameters into a separate struct.
Diffstat (limited to 'gtk')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
