Skip to content

Commit f09ae8a

Browse files
ajweeksTrueDoctor
authored andcommitted
Fix merge mistake
1 parent 652cda0 commit f09ae8a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/document/src/document.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ impl Document {
227227
Ok(())
228228
}
229229

230+
pub fn reorder_layer(&mut self, source_path: &[LayerId], target_path: &[LayerId]) -> Result<(), DocumentError> {
231+
// TODO: Detect when moving between folders and handle properly
232+
233+
self.root.as_folder_mut()?.reorder_layer(*source_path.last().unwrap(), *target_path.last().unwrap())?;
234+
235+
Ok(())
236+
}
237+
230238
pub fn layer_axis_aligned_bounding_box(&self, path: &[LayerId]) -> Result<Option<[DVec2; 2]>, DocumentError> {
231239
// TODO: Replace with functions of the transform api
232240
if path.is_empty() {
@@ -238,14 +246,6 @@ impl Document {
238246
}
239247
}
240248

241-
pub fn reorder_layer(&mut self, source_path: &[LayerId], target_path: &[LayerId]) -> Result<(), DocumentError> {
242-
// TODO: Detect when moving between folders and handle properly
243-
244-
self.root.as_folder_mut()?.reorder_layer(*source_path.last().unwrap(), *target_path.last().unwrap())?;
245-
246-
Ok(())
247-
}
248-
249249
pub fn layer_local_bounding_box(&self, path: &[LayerId]) -> Result<Option<[DVec2; 2]>, DocumentError> {
250250
// TODO: Replace with functions of the transform api
251251
let layer = self.document_layer(path)?;

0 commit comments

Comments
 (0)