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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 194
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26836-1300313254-215.66648-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 502
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
From adamkennedybackup [...] gmail.com Sun Mar 20 19: 49:28 2011
CC: adamk [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, score=-7.262 tagged_above=-99.9 required=10 tests=[AWL=-1.052, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-26836-1300313254-1441.66648-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-66648 [...] rt.cpan.org> <rt-3.8.HEAD-26836-1300313254-1441.66648-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Reply-To: adam [...] ali.as
Message-ID: <AANLkTi=2o32PYs_H_fPbE8-GJ_Lpt2kiqi_vJWHaJ+-E [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.262
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=adamkennedybackup [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2E67B24174D for <cpan-bug+Wx [...] hipster.bestpractical.com>; Sun, 20 Mar 2011 19:49:28 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LQn2MlDgpIJS for <cpan-bug+Wx [...] hipster.bestpractical.com>; Sun, 20 Mar 2011 19:49:26 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3E01F24172B for <bug-Wx [...] rt.cpan.org>; Sun, 20 Mar 2011 19:49:26 -0400 (EDT)
Received: (qmail 17290 invoked by uid 103); 20 Mar 2011 23:49:25 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Mar 2011 23:49:25 -0000
Received: from mail-yi0-f50.google.com (HELO mail-yi0-f50.google.com) (209.85.218.50) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sun, 20 Mar 2011 16:49:23 -0700
Received: by yie30 with SMTP id 30so2087037yie.9 for <bug-Wx [...] rt.cpan.org>; Sun, 20 Mar 2011 16:49:20 -0700 (PDT)
Received: by 10.90.16.34 with SMTP id 34mr3281937agp.28.1300664959394; Sun, 20 Mar 2011 16:49:19 -0700 (PDT)
Received: by 10.90.25.7 with HTTP; Sun, 20 Mar 2011 16:49:19 -0700 (PDT)
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #66648] Wx::ColourPickerCtrl does not support null colours
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=oJSdm8DHASfxIrj99VQCo1fN66/uB8EIg6ey9azwbcr+ekTdFIvaR9tW2nTDI5uC58 LqGPJgf6qg4bDmNAdm/IIYsE2iJYJ60mDRcF0sHbE15fR3jm3C9RNi3sT/bEAJTmY3E5 uhpwCIlk6QG/PJv2eBPGk0VWLtWWamiG2feB0=
Return-Path: <adamkennedybackup [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mcDzo8EgD3aCC0VlR4QxupK/j8jITULqX/lkgFVfwuY=; b=nwipoMEBmGu96ZrNDPdp/+FgaivA6CBgAbSmA64ild9hnc5RczgmNF+5mdEPKBYp8I MsTq6VFwIgKSi6MfFiKuoYvaHb+CWgrjMLmZI7a9OcnrKb9nGUDuYqpwdURZ4EX37ZkL pqSB+hVe2nMxKGBI6nzdoYsMFf/44OoH8J+fQ=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
Date: Mon, 21 Mar 2011 10:49:19 +1100
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-26836-1300664968-25.66648-0-0 [...] rt.cpan.org>
Content-Length: 775
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.