Fix an exception

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@185 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-05-09 16:05:39 +02:00
parent 0d405b9042
commit 90aeaab900

View file

@ -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();
}
/**