diff options
author | nyamatongwe <devnull@localhost> | 2002-04-08 01:15:11 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-04-08 01:15:11 +0000 |
commit | 823487b054bf275185c0925c68621d7c7c73029a (patch) | |
tree | df0042b7ad752a8372412e6ca2ada52c6de37341 | |
parent | c0c9f058c392723102366587bd18509db81490a5 (diff) | |
download | scintilla-mirror-823487b054bf275185c0925c68621d7c7c73029a.tar.gz |
Avoid visible changes when setting scroll width to same value.
-rw-r--r-- | src/Editor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 86b0aa1f2..00bdfcf57 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4691,9 +4691,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_SETSCROLLWIDTH: PLATFORM_ASSERT(wParam > 0); - if (wParam > 0) + if ((wParam > 0) && (wParam != static_cast<unsigned int >(scrollWidth))) { scrollWidth = wParam; - SetScrollBars(); + SetScrollBars(); + } break; case SCI_GETSCROLLWIDTH: |