Fixes for LT-29, disable target measurements when pixel spacing is not available

This commit is contained in:
Erik Ziegler committed 2016-02-09 15:08:26 +01:00
1 parent 831e546cd5
commit b01a2cccee
3 files changed
+25 -7

No files matched your search

@@ -1,8 +1,5 @@
pixelSpacingAutorunCheck = function() {
log.info('lesionTool button change autorun');
/*if (!Session.get('ViewerData')) {
return;
}*/
// Get oncology tools
var oncologyTools = $('button#lesion, button#nonTarget');
@@ -14,6 +11,10 @@ pixelSpacingAutorunCheck = function() {
}
var element = $('.imageViewerViewport').get(activeViewportIndex);
if (!element) {
return;
}
var enabledElement = cornerstone.getEnabledElement(element);
// Check value of rowPixelSpacing & columnPixelSpacing to define as unavailable