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:
parent
0d405b9042
commit
90aeaab900
1 changed files with 5 additions and 7 deletions
|
@ -94,14 +94,12 @@ class StonePainter {
|
||||||
*/
|
*/
|
||||||
public void setScale(float scale) {
|
public void setScale(float scale) {
|
||||||
this.scale = scale;
|
this.scale = scale;
|
||||||
prepaint();
|
|
||||||
|
if (this.scale == 0) {
|
||||||
|
this.scale = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
prepaint();
|
||||||
* @return the current grid scale
|
|
||||||
*/
|
|
||||||
public float getScale() {
|
|
||||||
return scale;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue