mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Improved Rectangle, Line and Shape Tools (#106)
This commit is contained in:
@@ -247,7 +247,7 @@ impl Document {
|
||||
sides,
|
||||
style,
|
||||
} => {
|
||||
let s = Shape::new((x0, y0), (x0 - x1, y0 - y1), sides, style);
|
||||
let s = Shape::new((x0, y0), (x1, y1), sides, style);
|
||||
self.add_layer(&path, Layer::new(LayerDataTypes::Shape(s)), insert_index)?;
|
||||
|
||||
Some(vec![DocumentResponse::DocumentChanged])
|
||||
|
||||
Reference in New Issue
Block a user