gslender / ofcgwt

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

setMax () seems inconsistent #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. setMax( 1 ), get 2 positions on x axis
2. setMax (0 ), crashes

What we do is:

if ( numPosDesired > 1 ) {
  xa.setMax ( numPosDesired - 1 );
} else {
  xa.setMax ( 1 );
}

So we only get an extra position in the infrequent case of a single 
position, but we'd like it to work consistently and as expected in all 
cases.

PS: we love this library and are using it as part of our product.

Original issue reported on code.google.com by damonbpo...@gmail.com on 21 Aug 2009 at 6:16