P5-3034 Image editor frame size wrong when on inches

This commit is contained in:
Anders Gustafsson
2018-09-20 10:09:39 +02:00
parent c38533a1b4
commit 022825195a
3 changed files with 21 additions and 7 deletions
+1 -3
View File
@@ -1043,9 +1043,7 @@ function FrameHandler(viewport) {
var vpData = viewport.getData();
var realFrameSize = 29; // Actual real life frame size width in mm.
if (vpData.dim.units === 'inch') {
realFrameSize /= 2.54;
}
_frameSize = vpData.ppmm * realFrameSize * viewport.canvas.getImage().scaleX;