Changeset 635
- Timestamp:
- 12/17/13 17:05:46 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Text.java
r632 r635 1467 1467 1468 1468 _lineBreaker.setPosition(0); 1469 boolean requireNextWord = false; 1469 1470 1470 1471 // --- Get the output of the LineBreakMeasurer and store it in a 1471 1472 while (_lineBreaker.getPosition() < _text.length()) { 1472 1473 1473 layout = _lineBreaker.nextLayout(width, _text.length(), true); 1474 if(_autoWrap || ExperimentalFeatures.AutoWrap) { 1475 requireNextWord = width < FrameGraphics.getMaxFrameSize().width - getX(); 1476 } 1477 1478 layout = _lineBreaker.nextLayout(width, _text.length(), requireNextWord); 1474 1479 1475 1480 // lineBreaker does not break on newline … … 1483 1488 if (_text.charAt(i) == '\n') {// || c == '\t'){ 1484 1489 _lineBreaker.setPosition(start); 1485 layout = _lineBreaker.nextLayout(width, i, true);1490 layout = _lineBreaker.nextLayout(width, i, requireNextWord); 1486 1491 break; 1487 1492 }
Note:
See TracChangeset
for help on using the changeset viewer.