[TD]trap wrong selection for ArchSection

This commit is contained in:
wandererfan
2020-02-04 19:03:21 -05:00
committed by WandererFan
parent 77ee35a9bd
commit 24da86c913
2 changed files with 47 additions and 0 deletions

View File

@@ -103,6 +103,14 @@ App::DocumentObjectExecReturn *DrawViewArch::execute(void)
}
App::DocumentObject* sourceObj = Source.getValue();
//if (sourceObj is not ArchSection) return
App::Property* proxy = sourceObj->getPropertyByName("Proxy");
if (proxy == nullptr) {
Base::Console().Error("DVA::execute - %s is not an ArchSection\n", sourceObj->Label.getValue());
//this is definitely not an ArchSection
return DrawView::execute();
}
if (sourceObj) {
std::string svgFrag;
std::string svgHead = getSVGHead();