Skip Menu |
 

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 66648
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Wx::ColourPickerCtrl does not support null colours
Download (untitled) / with headers
text/plain 194b
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.
Download (untitled) / with headers
text/plain 502b
Il Mar 15 Mar 2011 21:00:21, ADAMK ha scritto: Show quoted text
> 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
CC: adamk [...] cpan.org
Subject: Re: [rt.cpan.org #66648] Wx::ColourPickerCtrl does not support null colours
Date: Mon, 21 Mar 2011 10:49:19 +1100
To: bug-Wx [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
Download (untitled) / with headers
text/plain 775b
If you do that though, all the remaining parameters are off limits to the constructor and can't be set. Adam K On 17 March 2011 09:07, Mattia Barbon via RT <bug-Wx@rt.cpan.org> wrote: Show quoted text
> <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 > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.