Skip to content

Commit

Permalink
Fix LAYER 62 DXF output in case of disabled layer
Browse files Browse the repository at this point in the history
If the layer is disabled, color has negative value.
  • Loading branch information
michal-josef-spacek authored and rurban committed Feb 14, 2025
1 parent 3fa888d commit 3514892
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dwg.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3799,6 +3799,11 @@ DWG_TABLE (LAYER)
}
}
SINCE (R_13b1) {
DXF {
if (! FIELD_VALUE(on)) {
FIELD_VALUE (color.index) = - FIELD_VALUE(color.index); // Negative value in case of disabled layer
}
}
FIELD_CMC (color, 62);
}
VERSIONS (R_13b1, R_14) {
Expand Down

0 comments on commit 3514892

Please sign in to comment.