File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
django/applications/catmaid/static/js/layers Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,9 @@ Miscellaneous:
294294- Block image datasets like N5 or Neuroglancer now don't lead to errors anymore
295295 when their size isn't anymore a multiple of the block size.
296296
297+ - Restoring saved stack layer settings: a UI hang-up with fixed, caused by
298+ endlessly switching mirrors to a non-existent mirror ID.
299+
297300## Maintenance updates
298301
299302- Node distance measurements: computation of straight line distance has been
Original file line number Diff line number Diff line change 648648 */
649649 StackLayer . prototype . switchToMirror = function ( mirrorId , force ) {
650650 if ( mirrorId === this . mirrorId && ! force ) return ;
651+ // If the referenced mirror doesn't exist and is no custom mirror, then
652+ // don't attempt to switch.
653+ if ( this . stack . mirrors [ mirrorId ] === undefined && this . getCustomMirrorIds ( ) . indexOf ( mirrorId ) == - 1 ) {
654+ return ;
655+ }
651656 var newStackLayer = this . constructCopy ( { mirrorId : mirrorId } ) ;
652657 var layerKey = this . stackViewer . getLayerKey ( this ) ;
653658 this . stackViewer . replaceStackLayer ( layerKey , newStackLayer ) ;
You can’t perform that action at this time.
0 commit comments