From 76ffee77bc3f20a6922cc95e15a1977c658e424c Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sat, 21 Jan 2023 10:03:21 -0500 Subject: [PATCH] [TD]fix validation of hybrid dimension --- src/Mod/TechDraw/Gui/DimensionValidators.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/TechDraw/Gui/DimensionValidators.cpp b/src/Mod/TechDraw/Gui/DimensionValidators.cpp index 14d1624fee..0fd3232823 100644 --- a/src/Mod/TechDraw/Gui/DimensionValidators.cpp +++ b/src/Mod/TechDraw/Gui/DimensionValidators.cpp @@ -251,6 +251,12 @@ bool TechDraw::checkGeometryOccurences(StringVector subNames, GeomCountMap keyed } } + //hybrid dims (vertex-edge) can skip this check + if (foundCounts.size() > 1) { + //this is a hybrid dimension + return true; + } + //check found geometry counts against required counts for (auto& foundItem : foundCounts) { std::string currentKey = foundItem.first;