Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[VisUi] VisTextfield + FloatDigitsOnlyFilter copy & paste missing decimal point (and minus sign) #131
So i noticed a little bug. I have a VisTextField, and attach a FloatDigitsOnlyFilter to it. Then i type some random floating point number and copy in that same field annother floating point number. Then the decimal point is not pasted..only the digits.
As for the point, the problem lies in the acceptChar() method of the filter:
If there is already a floating point number in the field this is not going to work:
Unfortunately i don't know how this can be fixed.
Great. However this introduced another bug:
I just created a new filter with your fix for testing this out. Here is the stacktrace:
That's line 38 in your FloatDigitsOnlyFilter.java: