Fix crash in wxColour ctor from NSColor in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:39:09 +0000 (21:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:39:09 +0000 (21:39 +0000)
commitdf7d93f67bae4a7598dc7058f90f35acb7bd584a
treedc050f14547b3389284368bfce5b486d853a9133
parent3721dc6efe6f9ffe550c4c83bee2da210043bcaa
Fix crash in wxColour ctor from NSColor in wxOSX/Cocoa.

wxColour ctor from NSColor added by Kevin Ollivier in r62525 never worked as
it passed NULL pointer to NSColor:getComponents and so always crashed. This
resulted in a crash in the rich text editor of the text sample, for example.

Fix this by passing a valid array containing colour components instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/colour.mm