Skip to content

Commit

Permalink
Fix state group index. Fixes #515.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jun 8, 2018
1 parent c82f90f commit 9b4a1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/drawController.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ dwv.DrawController = function (drawDiv)

var statePosKids = statePosGroup.getChildren();
for ( var j = 0, lenj = statePosKids.length; j < lenj; ++j ) {
// shape group
var stateGroup = statePosKids[j];
// shape group (use first one since it will be removed from the group when we change it)
var stateGroup = statePosKids[0];
// add group to posGroup (switches its parent)
posGroup.add( stateGroup );
// shape
Expand Down

0 comments on commit 9b4a1df

Please sign in to comment.