LT-349: Measurement panel should be opened by default for associated studies

This commit is contained in:
Eloízio Salgado committed 2016-11-16 14:41:15 -02:00
1 parent d3ccb30764
commit 3fb1c7ad70
2 files changed
+3 -3

No files matched your search

@@ -569,6 +569,7 @@ HP.ProtocolEngine = class ProtocolEngine {
// Loop through each viewport
stageModel.viewports.forEach((viewport, viewportIndex) => {
var details = this.matchImages(viewport);
this.matchDetails[viewportIndex] = details;
// Convert any YES/NO values into true/false for Cornerstone
@@ -625,7 +626,7 @@ HP.ProtocolEngine = class ProtocolEngine {
currentPosition++;
}
if (currentMatch.imageId) {
if (currentMatch && currentMatch.imageId) {
currentViewportData.studyInstanceUid = currentMatch.studyInstanceUid;
currentViewportData.seriesInstanceUid = currentMatch.seriesInstanceUid;
currentViewportData.sopInstanceUid = currentMatch.sopInstanceUid;