Skip to content
Snippets Groups Projects
Commit 361caffe authored by felmer's avatar felmer
Browse files

SSDM-2279: Bug fixed in ResolutionChooserWidget: Take the first resolution of...

SSDM-2279: Bug fixed in ResolutionChooserWidget: Take the first resolution of the available resolutions if old resolution doesn't exist.

SVN: 34545
parent d6aa6d79
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,11 @@ define([ "jquery", "components/imageviewer/AbstractWidget", "components/imagevie
setSelectedResolution : function(resolution) {
if (resolution != null && $.inArray(resolution, this.getResolutionsCodes()) == -1) {
resolution = null;
if (this.getResolutionsCodes().length > 0) {
resolution = this.getResolutionsCodes()[0];
} else {
resolution = null;
}
}
if (this.selectedResolution != resolution) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment