From b4f32b56bb933fbae993579f9b2c282963903400 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sun, 4 Mar 2018 16:53:53 -0800 Subject: [PATCH] Fix move_layer index calculation See #213 --- src/views/stack_view.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/views/stack_view.rs b/src/views/stack_view.rs index 9d4155d..1b985b6 100644 --- a/src/views/stack_view.rs +++ b/src/views/stack_view.rs @@ -271,9 +271,6 @@ impl StackView { let removed = self.layers.remove(from_i); - // Shift the position if needed - let to_i = if to_i > from_i { to_i - 1 } else { to_i }; - self.layers.insert(to_i, removed); }