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 | 227385917246e410723a9f68c5960053a932982f (patch) | |
| tree | 83cf208d48149c48df77df0c914a6e356ef22879 /gtk/ScintillaGTK.cxx | |
| parent | 6e5804b4ecfbfd0fe6ac4228c40ef121c96452ab (diff) | |
| download | scintilla-mirror-227385917246e410723a9f68c5960053a932982f.tar.gz | |
Move wrapping, edge and visual adjustments from Editor to ViewStyle.
Move printing parameters into a separate struct.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -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) { |
