Merge pull request #730 from gianlucafiore/fix/ltscale-line-arc-ellipse

Fix linetype scaling for lines, arcs and ellipses
This commit is contained in:
gianlucafiore authored and GitHub committed 2026-08-10 15:11:54 -03:00
commit c4322f4cbf
1 file changed
+9 -3
+9 -3
View File
@@ -1113,10 +1113,16 @@ pub fn tessellate(
} else { } else {
color color
}; };
// Circles use the Lines path for large-coordinate precision, but they // Basic curve entities use the Lines path for large-coordinate precision,
// must still preserve the entity's resolved linetype pattern. // but they must still preserve the entity's resolved linetype pattern.
let (edge_pattern_length, edge_pattern) = let (edge_pattern_length, edge_pattern) =
if matches!(entity, EntityType::Circle(_)) { if matches!(
entity,
EntityType::Line(_)
| EntityType::Circle(_)
| EntityType::Arc(_)
| EntityType::Ellipse(_)
) {
(pattern_length, pattern) (pattern_length, pattern)
} else { } else {
(0.0, [0.0; 8]) (0.0, [0.0; 8])