P5-1417: Dragbar and rulers should work with inches

This commit is contained in:
Ruslan Getmansky
2017-06-21 15:08:20 +03:00
parent 2b4bb8ba37
commit e79245e14e
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function RulerHandler(viewport) {
dim = viewport.getData().dim.height - dim;
}
this.setText(Math.round(dim * 100) / 100 + ' cm');
this.setText(Math.round(dim * 100) / 100 + ' ' + viewport.getData().dim.units);
}
};