Fix initial gradient point calculation in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 15:02:31 +0000 (15:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 15:02:31 +0000 (15:02 +0000)
commit4027f0d759c4fe3160affbfd27148cb56a1e706d
treebecfd11ef962804b33fd8dff1e9c9d73758acafd
parent1c7ce073474469e25aedb6c203fdb6f549d18870
Fix initial gradient point calculation in wxOSX.

This fixes the bug introduced in r63879 which used the wrong indices into the
stops array resulting in visual artefacts in wxAUI, for example (and also
possible crashes due to accessing out of bound array elements).

Closes #12784.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/carbon/graphics.cpp