Repository navigation
fix(dxf): a linear dimension without group 42 measures along its dimension line - #648
Merged
HakanSeven12 merged 2 commits intoNov 24, 2026
Conversation
added 2 commits
November 24, 2026 12:50
…ment, and the DXF reader without group 42 too
…ng its dimension line
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #645
A linear dimension cached the direct distance between its extension-line origins as
actual_measurement, and the DXF reader kept it when group 42 is missing. It now caches the projection thatmeasurement()computes, and the DXF reader refreshes it once the normal is known.Commits
Test (#645): …(red, tests only):tests/issue_645_linear_dimension_measurement.rs.dxf_dimension_keeps_a_stored_group_42passes already. It guards that a stored group 42 stays authoritative.Fix (#645): …(pushed once CI has shown the red commit failing):DimensionLinear::refresh_measurement(), andnew/rotatedcall it (verticalnow delegates torotated);Ran:
cargo test,cargo test --no-default-features,cargo test --all-featuresandcargo check --all-targets --all-features, all on the fix commit locally. All passed;cargo checkshows only the pre-existing warnings insrc/classes/civil/.Closes #645is abovecargo testpasses on the last commit (see "Ran"; ticked once the fix commit is pushed and CI is green)