mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

A TextBox with an no text set crashes upon focus #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a TextBox with the default constructor

What is the expected behaviour? What happens instead?
It shouldn't crash upon focus...

Original issue reported on code.google.com by olof.nae...@gmail.com on 15 Sep 2008 at 11:22

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 15 Sep 2008 at 11:24

GoogleCodeExporter commented 9 years ago
It seems you fixed this by basically reverting the fix for issue 47. So now that
issue should be reopened I think.

Or maybe fix this issue differently, for example by not assuming there is at 
least
one row of text in the TextBox at various places in the code. I'm not sure how
difficult that is.

Original comment by b.lindeijer on 17 Sep 2008 at 6:03

GoogleCodeExporter commented 9 years ago
You are right, I should revert the change and make another fix for this issue.

Original comment by olof.nae...@gmail.com on 17 Sep 2008 at 1:19

GoogleCodeExporter commented 9 years ago
I think I'm going to solve this by introducing a helper class in Guichan called 
Text 
which purpose is to ease text manipulation. As has previously been suggested, 
such a 
class could also easily be overridden to add other character encoding support.

Original comment by olof.nae...@gmail.com on 17 Sep 2008 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 18 Sep 2008 at 7:22