diff options
| author | nyamatongwe <devnull@localhost> | 2002-02-12 10:34:58 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-02-12 10:34:58 +0000 | 
| commit | 8fdc38b725ee9cc02900995e41fc9eb35305d611 (patch) | |
| tree | 7a689767151f1b97be707043268a61693cb7025b /src | |
| parent | b0188c638f8d44e3f33e6fa61712550a1ca68058 (diff) | |
| download | scintilla-mirror-8fdc38b725ee9cc02900995e41fc9eb35305d611.tar.gz | |
Avoid extra processing if SETHSCROLLBAR used to set to same value as
before.
Diffstat (limited to 'src')
| -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: | 
