LT-189: Length is always longer than width

This commit is contained in:
Aysel Afsar 2016-02-23 17:02:44 -05:00
parent 0b92ee706f
commit 68575ebaa9

View File

@ -1031,6 +1031,14 @@
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 widthText = ' W ' + width.toFixed(1) + suffix;
var textLines = [ 'Target ' + data.lesionNumber, lengthText, widthText ];