Fix crash when selections exceed the container's bounds

This commit is contained in:
Antonio Scandurra
2021-04-02 13:49:44 +02:00
parent ae447ca1d9
commit d10fc6ce3f
6 changed files with 40 additions and 11 deletions
+3 -1
View File
@@ -156,7 +156,9 @@ impl Layer {
}
fn push_path(&mut self, path: Path) {
self.paths.push(path);
if !path.bounds.is_empty() {
self.paths.push(path);
}
}
pub fn paths(&self) -> &[Path] {