You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2015/06/09 23:38:58 UTC
svn commit: r1684539 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java
Author: rwhitcomb
Date: Tue Jun 9 21:38:58 2015
New Revision: 1684539
URL: http://svn.apache.org/r1684539
Log:
Clean up some of the line wrapping that was done that has left
a number of comments looking very strange.
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java?rev=1684539&r1=1684538&r2=1684539&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java Tue Jun 9 21:38:58 2015
@@ -272,14 +272,10 @@ public class LabelSkin extends Component
float lineWidth = 0;
int lastWhitespaceIndex = -1;
- // NOTE We use a character iterator here only because it is
- // the most
- // efficient way to measure the character bounds (as of Java
- // 6, the version
- // of Font#getStringBounds() that takes a String performs a
- // string copy,
- // whereas the version that takes a character iterator does
- // not)
+ // NOTE: We use a character iterator here only because it is the most
+ // efficient way to measure the character bounds (as of Java 6, the version
+ // of Font#getStringBounds() that takes a String performs a string copy,
+ // whereas the version that takes a character iterator does not).
StringCharacterIterator ci = new StringCharacterIterator(text);
while (i < n) {
char c = text.charAt(i);