diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 9cf7a9c195..4dad9f7c49 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -4448,7 +4448,7 @@ int SketchObject::carbonCopy(App::DocumentObject * pObj, bool construction) int i=0; for (auto & obj : Objects){ if (obj == sobj && SubElements[i] == sSubElements[si]){ - Base::Console().Error("Link to %s already exists in this sketch. Delete the link and try again\n",sSubElements[si]); + Base::Console().Error("Link to %s already exists in this sketch. Delete the link and try again\n",sSubElements[si].c_str()); return -1; }