LT-189: Length is always longer than width
This commit is contained in:
parent
0b92ee706f
commit
68575ebaa9
@ -1031,6 +1031,14 @@
|
|||||||
suffix = ' pixels';
|
suffix = ' pixels';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Length is always longer than width
|
||||||
|
if (width > length) {
|
||||||
|
var tempW = width;
|
||||||
|
var tempL = length;
|
||||||
|
length = tempW;
|
||||||
|
width = tempL;
|
||||||
|
}
|
||||||
|
|
||||||
var lengthText = ' L ' + length.toFixed(1) + suffix;
|
var lengthText = ' L ' + length.toFixed(1) + suffix;
|
||||||
var widthText = ' W ' + width.toFixed(1) + suffix;
|
var widthText = ' W ' + width.toFixed(1) + suffix;
|
||||||
var textLines = [ 'Target ' + data.lesionNumber, lengthText, widthText ];
|
var textLines = [ 'Target ' + data.lesionNumber, lengthText, widthText ];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user