summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jrummikub/view/impl/StonePainter.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/jrummikub/view/impl/StonePainter.java b/src/jrummikub/view/impl/StonePainter.java
index dccb01d..d6acd09 100644
--- a/src/jrummikub/view/impl/StonePainter.java
+++ b/src/jrummikub/view/impl/StonePainter.java
@@ -94,14 +94,12 @@ class StonePainter {
*/
public void setScale(float scale) {
this.scale = scale;
- prepaint();
- }
- /**
- * @return the current grid scale
- */
- public float getScale() {
- return scale;
+ if (this.scale == 0) {
+ this.scale = 1;
+ }
+
+ prepaint();
}
/**