Skip to content

Commit

Permalink
Fixup f980fe6 (documentation error)
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Vultraz committed Mar 26, 2017
1 parent f980fe6 commit 51453f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/widgets/stacked_widget.cpp
Expand Up @@ -147,9 +147,9 @@ void stacked_widget::select_layer(const int layer)

// Else, re-show all layers.
for(unsigned int i = 0; i < num_layers; ++i) {
/* By design, only the top-most item will receive events even if multiple items are visible.
* Additionally, if this point is reached, all layers have already been hidden by the loop above,
* so no check on an item's selected state is necessary; just select them all.
/* By design, only the last selected item will receive events even if multiple items are visible
* and said item is not at the top of the stack. If this point is reached, all layers have already
* been hidden by the loop above, so the last layer selected will be the top-most one, as desired.
*/
generator_->select_item(i, true);
}
Expand Down

0 comments on commit 51453f9

Please sign in to comment.