Check study instances whether they have image data based on sopClassUid or rows (JPEG and PNG images do not have sopClassUid) in layoutManager as well

This commit is contained in:
Evren Ozkan committed 2016-06-10 17:37:07 -04:00
1 parent c0fe9fff50
commit 5935c027b1
1 file changed
+3 -1
+3 -1
View File
@@ -51,7 +51,9 @@ LayoutManager = class LayoutManager {
// TODO: Change this when we add PDF and MPEG support
// See https://ohiforg.atlassian.net/browse/LT-227
var firstInstance = series.instances[0];
if (!firstInstance.rows) {
// All imaging modalities must have a valid value for sopClassUid or rows
if (!firstInstance || (!isImage(firstInstance.sopClassUid) && !firstInstance.rows)) {
currentViewportData = {};
} else {
currentViewportData = {