From 63192810a3fe4ec2c81b5b52dd0278d145324bfb Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 31 May 2011 22:06:23 +0200 Subject: kleine fixes git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@364 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/TablePanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jrummikub/view/impl') diff --git a/src/jrummikub/view/impl/TablePanel.java b/src/jrummikub/view/impl/TablePanel.java index 31f6296..7c53d28 100644 --- a/src/jrummikub/view/impl/TablePanel.java +++ b/src/jrummikub/view/impl/TablePanel.java @@ -147,8 +147,8 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { if (p.getY() < miny) miny = p.getY(); - if (p.getX() + stoneSet.size() > maxx) - maxx = p.getX() + stoneSet.size(); + if (p.getX() + stoneSet.getSize() > maxx) + maxx = p.getX() + stoneSet.getSize(); if (p.getY() + 1 > maxy) maxy = p.getY() + 1; @@ -204,7 +204,7 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { } // right connector - rect = new Rectangle2D.Float(x + stoneSet.size(), y, CONNECTOR_WIDTH, 1); + rect = new Rectangle2D.Float(x + stoneSet.getSize(), y, CONNECTOR_WIDTH, 1); if (rect.contains(pos.getX(), pos.getY())) { rightConnectorClickEvent.emit(stoneSet); return true; @@ -235,7 +235,7 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { } // right connector - rect = new Rectangle2D.Float(x + stoneSet.size(), y, CONNECTOR_WIDTH, 1); + rect = new Rectangle2D.Float(x + stoneSet.getSize(), y, CONNECTOR_WIDTH, 1); if (rect.contains(pos.getX(), pos.getY())) { rightHoveredConnector = stoneSet; break; -- cgit v1.2.3