From 3514892bc2945a44b643786809540659693a58dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= Date: Fri, 14 Feb 2025 15:00:09 +0100 Subject: [PATCH] Fix LAYER 62 DXF output in case of disabled layer If the layer is disabled, color has negative value. --- src/dwg.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dwg.spec b/src/dwg.spec index 1aa3eba43..5cf132bfa 100644 --- a/src/dwg.spec +++ b/src/dwg.spec @@ -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) {