P-McG / BT-MatML-Editor

Material Text Editor for the xml MatML schema (https://www.matml.org)
GNU General Public License v3.0
6 stars 0 forks source link

Crashing on Strongly Typed elements #36

Open P-McG opened 1 year ago

P-McG commented 1 year ago

Program crashes when selecting the Strongly Typed elements:

STRONGLY_TYPED_DEF(GlossaryTerm::Definition_type, Definition);
STRONGLY_TYPED_DEF(GlossaryTerm::Abbreviation_type, Abbreviation);
STRONGLY_TYPED_DEF(GlossaryTerm::Synonym_type, Synonym);
STRONGLY_TYPED_DEF(Geometry::Shape_type, Shape);
STRONGLY_TYPED_DEF(Geometry::Dimensions_type, Dimensions);
STRONGLY_TYPED_DEF(Geometry::Orientation_type, Orientation);
STRONGLY_TYPED_DEF(ProcessingDetails::Result_type, Result);
STRONGLY_TYPED_DEF(Class::ParentSubClass_type, ParentSubClass);
STRONGLY_TYPED_DEF(Form::Description_type, Description); // Form::Description is Name.  Use Name instead;
STRONGLY_TYPED_DEF(BulkDetails::Subclass_type, Subclass);
STRONGLY_TYPED_DEF(ComponentDetails::Subclass_type, Subclass1);

During the wxTreeCtrl creation in the TreeTraveral functions in the strongly typed are not correctly created.

    //Convert to a strongly typed required for the specialization of the functor
    auto element_strongly_typed{ std::make_shared<Definition>(element).get() };

Does not transfer element to strongly typed classes t member.