-
-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UnitUtils.getDimensionName returns Angle instead of Dimensionless
An Angle is also Dimensionless and because it is the first compatible unit it is always returned instead of any other Dimensionless unit. With these changes `getDimensionName` will prefer the dimension of equal units over those of compatible units. Fixes #2880 Signed-off-by: Wouter Born <github@maindrain.net>
- Loading branch information
Showing
2 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters