equal
deleted
inserted
replaced
644 */ |
644 */ |
645 public float nextTabStop(float x, int tabOffset) { |
645 public float nextTabStop(float x, int tabOffset) { |
646 if (tabSize == 0) { |
646 if (tabSize == 0) { |
647 return x; |
647 return x; |
648 } |
648 } |
649 float ntabs = (x - tabBase) / tabSize; |
649 int ntabs = (int) ((x - tabBase) / tabSize); |
650 return tabBase + ((ntabs + 1) * tabSize); |
650 return tabBase + ((ntabs + 1) * tabSize); |
651 } |
651 } |
652 |
652 |
653 // --- local methods ------------------------------------------------ |
653 // --- local methods ------------------------------------------------ |
654 |
654 |