Zhimin Zhan
2008-Sep-16 00:21 UTC
argument type error in StyledTextControl ''LineFromPosition''
I got the following error when I was randomly clicking margins and lines in a StyledTextControl (3 margins). It doesn''t occur often, usually happens after many clicks (20 or so). Expected argument 1 of type int, but got Wxruby2::Point #<Wx::Point: (1753743404, 0)> in SWIG method ''LineFromPosition'' My env: wxRuby mingw32 1.9.8, ruby 1.8.6 p287 on XP Regards, Zhimin -- Posted via http://www.ruby-forum.com/.
Alex Fenton
2008-Sep-16 14:58 UTC
[wxruby-users] argument type error in StyledTextControl ''LineFromPosition''
Zhimin Zhan wrote:> I got the following error when I was randomly clicking margins and lines > in a StyledTextControl (3 margins). It doesn''t occur often, usually > happens after many clicks (20 or so). > > Expected argument 1 of type int, but got Wxruby2::Point #<Wx::Point: > (1753743404, 0)> > in SWIG method ''LineFromPosition'' >Thanks for the report. I can reproduce this issue but I don''t know why it is happening. I''ve filed it as a bug for fixing: http://rubyforge.org/tracker/?func=detail&atid=218&aid=21985&group_id=35 cheers alex