You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by no...@apache.org on 2009/10/29 15:47:31 UTC

svn commit: r830976 - /incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java

Author: noelgrandin
Date: Thu Oct 29 14:47:30 2009
New Revision: 830976

URL: http://svn.apache.org/viewvc?rev=830976&view=rev
Log:
revert clipping change

Modified:
    incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java

Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java?rev=830976&r1=830975&r2=830976&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraMeterSkin.java Thu Oct 29 14:47:30 2009
@@ -197,11 +197,12 @@
             int textX = (width - textWidth - 2) / 2 + 1;
             
             // Paint the text
-            graphics.setPaint(Color.LIGHT_GRAY);
+            Shape previousClip = graphics.getClip();
+            graphics.clipRect(0, 0, meterStop, height);
             graphics.setPaint(textFillColor);
             graphics.setFont(font);
             graphics.drawString(meter.getText(), textX, ascent+1);
-            Shape previousClip = graphics.getClip();
+            graphics.setClip(previousClip);
             graphics.clipRect(meterStop, 0, width, height);
             graphics.setPaint(textColor);
             graphics.setFont(font);