Wed Mar 16 18:07:34 2011: Request 66648 was acted upon.
Transaction: Correspondence added by MBARBON
       Queue: Wx
     Subject: Wx::ColourPickerCtrl does not support null colours
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: ad...@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=66648 >


Il Mar 15 Mar 2011 21:00:21, ADAMK ha scritto:
> Wx::ColourPickerCtrl segfaults if the colour parameter to the
> constructor is undef.
> 
> According to the C++ documentation, I believe this should result in
> Wx::ColourPickerCtrl defaulting to black.

  The color will default to black if you call the constructor as:

    Wx::ColourPickerCtrl->new( $parent, -1 );

an explicit undef, is translated to NULL, and the underlying C++ function takes 
a C++ 
reference, wich can't be NULL.

Regards,
Mattia

Reply via email to