From d5a1dce98c25e3d2aab63b112e3d19d14cc51d92 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Tue, 15 Oct 2024 13:41:27 +0200 Subject: [PATCH] debug: fix GEOPOSITIONMARKER spec and test. no coverage still --- include/dwg.h | 2 ++ src/dwg.spec | 12 +++++++----- test/unit-testing/geopositionmarker.c | 8 ++++---- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/include/dwg.h b/include/dwg.h index c7b485b95..7ac63f88c 100644 --- a/include/dwg.h +++ b/include/dwg.h @@ -4910,6 +4910,8 @@ typedef struct _dwg_entity_GEOPOSITIONMARKER BITCODE_RC text_alignment; /*!< DXF 70 0 left, 1 center, 2 right */ BITCODE_B mtext_visible; /*!< DXF 290 */ BITCODE_B enable_frame_text; /*!< DXF 290 */ + BITCODE_3BD ins_pt; /* DXF only, = position */ + BITCODE_2RD alignment_pt; /* DXF only */ Dwg_AcDbMTextObjectEmbedded mtext; BITCODE_B is_really_locked; /*mtext_type > 1) + if (_obj->enable_frame_text) { - if (!dwg_dynapi_entity_value (attrib, "ATTRIB", "mtext", &mtext, NULL)) - fail ("ATTRIB.mtext"); + if (!dwg_dynapi_entity_value (_obj, "GEOPOSITIONMARKER", "mtext", &mtext, NULL)) + fail ("GEOPOSITIONMARKER.mtext"); else { CHK_SUBCLASS_TYPE (mtext, AcDbMTextObjectEmbedded, attachment, BS); - CHK_SUBCLASS_3RD (mtext, AcDbMTextObjectEmbedded, ins_pt); + // CHK_SUBCLASS_3RD (mtext, AcDbMTextObjectEmbedded, ins_pt); CHK_SUBCLASS_3RD (mtext, AcDbMTextObjectEmbedded, x_axis_dir); CHK_SUBCLASS_TYPE (mtext, AcDbMTextObjectEmbedded, rect_height, BD); CHK_SUBCLASS_TYPE (mtext, AcDbMTextObjectEmbedded, rect_width, BD);