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

Zhimin Z. 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

Hi Alex,

The problem happens only on mingw32 build. I tried 1.9.8 mswin gem, it’s
fine.

Regards,
Zhimin