You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/10/15 12:45:49 UTC
svn commit: r825460 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java
Author: tvolkert
Date: Thu Oct 15 10:45:49 2009
New Revision: 825460
URL: http://svn.apache.org/viewvc?rev=825460&view=rev
Log:
Fixed small bug in TablePaneSkin
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java?rev=825460&r1=825459&r2=825460&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TablePaneSkin.java Thu Oct 15 10:45:49 2009
@@ -673,7 +673,8 @@
}
if (showHorizontalGridLines
- && verticalSpacing > 0) {
+ && verticalSpacing > 0
+ && rowCount > 1) {
gridGraphics.setPaint(horizontalGridColor);
int rowY = padding.top + (rowHeights[0] + verticalSpacing);
@@ -688,7 +689,8 @@
}
if (showVerticalGridLines
- && horizontalSpacing > 0) {
+ && horizontalSpacing > 0
+ && columnCount > 1) {
gridGraphics.setPaint(verticalGridColor);
int columnX = padding.left + (columnWidths[0] + horizontalSpacing);