Skip to content

Commit

Permalink
FIX: property placement with no angle but mirror 'x'
Browse files Browse the repository at this point in the history
  • Loading branch information
spielhuus committed Apr 27, 2024
1 parent 813275a commit b264542
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/docs/_static/draw3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/draw/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ impl Draw {
} else {
el::JUSTIFY_LEFT
};
if !mirror.is_empty() {
orientation = if orientation == el::JUSTIFY_RIGHT {
el::JUSTIFY_LEFT
} else {
el::JUSTIFY_RIGHT
if !mirror.is_empty() && mirror.contains('y') {
orientation = if orientation == el::JUSTIFY_RIGHT {
el::JUSTIFY_LEFT
} else {
el::JUSTIFY_RIGHT
};
}
orientation
Expand Down

0 comments on commit b264542

Please sign in to comment.