Avoid too many sash position changed events when splitter is resized.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:50 +0000 (19:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Oct 2011 19:48:50 +0000 (19:48 +0000)
commit6460ce5afe03b09a8f3832bbade88373f6050fc9
treebcb78950589d6ce9035003179c085b24b84e6683
parent1b5dfa53aa2c3ddf779332ca5b1b5bd29f725a84
Avoid too many sash position changed events when splitter is resized.

We could call SetSashPositionAndNotify() twice in a row which was probably
unexpected and possibly wasteful, if the user code did anything non trivial in
response to this event.

Just call it once after we're certain which sash position do we want to set.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/splitter.cpp