I'm using SVN Build 11628. Not sure when it started happening, but I could also observe in the previous nightly.
Basically, selecting "Default" as color in wxSmith results in a custom color setting with black (0, 0, 0) as color instead. Existing color is fine when already set to "Default" as long as the setting isn't touched.
OS? We have all night builds on the download server it would help a lot if you can try to find the night build which introduced this.
Does it happen with a simple project created from scratch?
This was probably with the switch to wx3.XX
I work on this and as far as i can tell, if you set the color value to something and then back to default wxSmith trades the default color as custom color.
I think this has something to do with wxwidgets\properties\wxscolourproperty.cpp:
the wx30 code does not handle the
wxsCOLOUR_DEFAULTcase separately... Still investigating...I am not 100% sure what all this code does... But after some debugging and reading and trying i think this is the right fix:
It also makes the code symmetric with the wx28 code. Jens ported this code, so it would be nice if he could confirm my change....
You have to ping in with a PM in the forum. I'm not sure it follows the bug tracker these days.
To be honest, I do not recall why I did it that way, but it's about seven years ago.
It looks like I totally missed the default-colour.
@bluehazzard: your proposed fix seems to be correct, if it works, just go ahead.
Hopefully fixed in revision: 11687
Thank you all for your comments and for the report of this ticket