Author Topic: wxSmith custom class bug  (Read 5673 times)

Offline lesnewell

  • Multiple posting newcomer
  • *
  • Posts: 66
wxSmith custom class bug
« on: March 02, 2007, 05:05:51 pm »
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);

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: wxSmith custom class bug
« Reply #1 on: March 02, 2007, 06:49:18 pm »
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

Offline lesnewell

  • Multiple posting newcomer
  • *
  • Posts: 66
Re: wxSmith custom class bug
« Reply #2 on: March 02, 2007, 11:06:34 pm »
Yup - Fixed. Thanks for your great work :D