|
@@ -88,14 +88,15 @@ public class Model extends Observable
|
|
|
int tempLen = 0;
|
|
|
int index = 0;
|
|
|
|
|
|
+ System.out.println("X is: " + x);
|
|
|
for (int i = 0; i < thingies.size() && tempLen <= x; i++)
|
|
|
{
|
|
|
tempLen += thingies.get(i).getVisibleLen();
|
|
|
index = i;
|
|
|
}
|
|
|
|
|
|
- System.out.println("index is: " + index);
|
|
|
- System.out.println("curthing is: " + thingies.indexOf(curThingy));
|
|
|
+ //System.out.println("index is: " + index);
|
|
|
+ //System.out.println("curthing is: " + thingies.indexOf(curThingy));
|
|
|
curThingy = thingies.get(index);
|
|
|
// off by one adjustments if we're at the end of a thingy
|
|
|
if (index > 0 && curThingy.getVisibleLen() == 0 && tempLen > x) curThingy = thingies.get(index - 1);
|