Fix polygon overflow (#644)

* changed polygon side to u32 + set max polygon side to 1000

* revert unnecessary change

* Include unwrap for vertices input
This commit is contained in:
Thomas Cheng
2022-05-20 21:40:01 +01:00
committed by Keavon Chambers
parent a8f09da5a2
commit c450bbf028
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ pub enum Operation {
path: Vec<LayerId>,
insert_index: isize,
transform: [f64; 6],
sides: u8,
sides: u32,
style: style::PathStyle,
},
AddOverlayShape {