diff options
author | nyamatongwe <unknown> | 2002-02-12 10:34:58 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-12 10:34:58 +0000 |
commit | 04bdf3169b2c78aa5bd32af228e777c76f50e1ee (patch) | |
tree | 7a689767151f1b97be707043268a61693cb7025b | |
parent | 0440965c46f5d2d437a7e3059fea0bd53944c992 (diff) | |
download | scintilla-mirror-04bdf3169b2c78aa5bd32af228e777c76f50e1ee.tar.gz |
Avoid extra processing if SETHSCROLLBAR used to set to same value as
before.
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index b64f99de9..304ed61bc 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4386,9 +4386,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return pdoc->GetColumn(wParam); case SCI_SETHSCROLLBAR : - horizontalScrollBarVisible = wParam != 0; - SetScrollBars(); - ReconfigureScrollBars(); + if (horizontalScrollBarVisible != (wParam != 0)) { + horizontalScrollBarVisible = wParam != 0; + SetScrollBars(); + ReconfigureScrollBars(); + } break; case SCI_GETHSCROLLBAR: |