Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Fixed root container test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timidger committed Dec 9, 2016
1 parent d884071 commit 15169fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/actions/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl LayoutTree {
/// it will remain pointing at the previous parent container.
pub fn float_container(&mut self, id: Uuid) -> CommandResult {
let node_ix = try!(self.tree.lookup_id(id).ok_or(TreeError::NodeNotFound(id)));
if self.root_container_ix() == Some(node_ix) {
if self.tree.is_root_container(node_ix) {
return Err(TreeError::InvalidOperationOnRootContainer(id))
}
if self.tree[node_ix].floating() {
Expand Down

0 comments on commit 15169fd

Please sign in to comment.