Draft: Small typo fix

This commit is contained in:
Yorik van Havre 2014-02-28 10:05:44 -03:00
parent 8f2604a694
commit 810555d2ab
2 changed files with 2 additions and 1 deletions

View File

@ -946,7 +946,7 @@ def makeCopy(obj,force=None,reparent=False):
newobj = FreeCAD.ActiveDocument.addObject(obj.TypeId,getRealName(obj.Name))
ArchWindow._Window(newobj)
if gui:
Archwindow._ViewProviderWindow(newobj.ViewObject)
ArchWindow._ViewProviderWindow(newobj.ViewObject)
elif (getType(obj) == "Sketch") or (force == "Sketch"):
newobj = FreeCAD.ActiveDocument.addObject("Sketcher::SketchObject",getRealName(obj.Name))
for geo in obj.Geometries:

View File

@ -4105,6 +4105,7 @@ class Draft_Clone(Modifier):
for obj in FreeCADGui.Selection.getSelection():
Draft.clone(obj)
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
self.finish()