Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith custom class bug

(1/1)

lesnewell:
If you define a custom class and use an underscore in the creating code box they get converted to & when you save/load. For instance:
$(THIS) = new $(CLASS)($(PARENT),$(ID),0,-M_PI,M_PI,&unitAngular);
becomes
$(THIS) = new $(CLASS)($(PARENT),$(ID),0,-M&PI,M&PI,&unitAngular);

byo:
Try changing to proper value, save and see if it loads correctly then.

I've updated string-handling inside XRC files recently to be equal to the one inside XRC files. Unfortunately this introduced some small incompatibility when '_' and few othre characters are used.

Sorry for inconvenience

 BYO

lesnewell:
Yup - Fixed. Thanks for your great work :D

Navigation

[0] Message Index

Go to full version