Skip to content
Browse files

fix crash when creating a copy of datum object

  • Loading branch information...
wwmayer committed Sep 29, 2018
1 parent 0d228bc commit dc46910231d3ecea3bdd5d4898468e8d7f7c762b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Mod/PartDesign/Gui/TaskFeaturePick.cpp
@@ -363,7 +363,9 @@ App::DocumentObject* TaskFeaturePick::makeCopy(App::DocumentObject* obj, std::st
// TODO Replace it with commands (2015-09-11, Fat-Zer)
if(obj->isDerivedFrom(Part::Datum::getClassTypeId())) {
copy = App::GetApplication().getActiveDocument()->addObject(
obj->getClassTypeId().getName(), name.c_str() );
obj->getTypeId().getName(), name.c_str() );


//we need to reference the individual datums and make again datums. This is important as
//datum adjust their size dependent on the part size, hence simply copying the shape is

0 comments on commit dc46910

Please sign in to comment.
You can’t perform that action at this time.