P5-3034 Image editor frame size wrong when on inches
This commit is contained in:
Vendored
+1
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user