You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/03/13 22:15:20 UTC
svn commit: r922678 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java
Author: gbrown
Date: Sat Mar 13 21:15:18 2010
New Revision: 922678
URL: http://svn.apache.org/viewvc?rev=922678&view=rev
Log:
Fix edge case bug in LabelSkin that caused a single-character label to fail to paint when wrapText = true.
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=922678&r1=922677&r2=922678&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 Sat Mar 13 21:15:18 2010
@@ -222,7 +222,8 @@ public class LabelSkin extends Component
int n = text.length();
if (n > 0) {
- if (wrapText) {
+ if (wrapText
+ && n > 1) {
int width = getWidth() - (padding.left + padding.right);
float lineWidth = 0;