forked from 1b-agent/opencadstudio-upstream
fix(dist): respect units settings in DIST measurement output
This commit is contained in:
1 parent
fcbab57627
commit
00e102607c
8 files changed
+172
-30
No files matched your search
@@ -108,7 +108,7 @@ pub fn format_length(value: f64) -> String {
|
||||
|
||||
/// Drop the sign from a formatted number whose digits all rounded to zero. A
|
||||
/// rotation leaves coordinates like -1e-15 behind, which read as `-0.0000`.
|
||||
fn without_negative_zero(text: String) -> String {
|
||||
pub fn without_negative_zero(text: String) -> String {
|
||||
match text.strip_prefix('-') {
|
||||
Some(rest)
|
||||
if rest.chars().any(|c| c.is_ascii_digit())
|
||||
|
||||
Reference in new issue
Block a user