Fix for reference line bug

This commit is contained in:
Erik Ziegler 2015-11-11 15:37:11 +01:00
parent 0e2c5e0d2e
commit 1d0ae73611

View File

@ -6988,6 +6988,11 @@ if (typeof cornerstoneTools === 'undefined') {
var targetImagePlane = cornerstoneTools.metaData.get('imagePlane', targetImage.imageId);
var referenceImagePlane = cornerstoneTools.metaData.get('imagePlane', referenceImage.imageId);
// Make sure the target and reference actually have image plane metadata
if (!targetImagePlane || !referenceImagePlane) {
return;
}
// the image planes must be in the same frame of reference
if (targetImagePlane.frameOfReferenceUID !== referenceImagePlane.frameOfReferenceUID) {
return;