]> git.saurik.com Git - wxWidgets.git/commit
Remove scroll units duplication in wxGrid to fix setting them.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:23 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2010 22:50:23 +0000 (22:50 +0000)
commitfd76c6a77d9b0965534ed08e4aab979235370a44
tree9aca856583486ea46aa7036d857fe513cf7c90a4
parentad178a657eee61dc43a516b8aaf4ae2499302a24
Remove scroll units duplication in wxGrid to fix setting them.

For some unknown reason wxGrid decided to store its scroll units in its own
m_scrollLine[XY] variables instead of just using the base wxScrollWindow class
m_[xy]ScrollPixelsPerLine ones. And, of course, the two could get out of sync
because wxGrid didn't update the base class version correctly.

Just don't duplicate these values at all and use the base class fields. This
makes the code simpler and also fixes changing the size of the scroll units.

Closes #12221.

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