diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 077cc6016b23..1ea8a526c1be 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -240,7 +240,7 @@ def addElement(self): if it: mod = None for a in self.attribs: - if it == getattr(self,"tree"+a): + if it.text(0) == getattr(self,"tree"+a).text(0): mod = a for o in FreeCADGui.Selection.getSelection(): addToComponent(self.obj,o,mod) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 8e3506e643f6..e291e2e1b685 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -592,7 +592,7 @@ def getMovableChildren(objectslist,recursive=False): children = obj.OutList if hasattr(obj,"Proxy"): if obj.Proxy: - if hasattr(obj.Proxy,"getSiblings"): + if hasattr(obj.Proxy,"getSiblings") and not(getType(obj) in ["Window"]): children.extend(obj.Proxy.getSiblings(obj)) for child in children: if hasattr(child,"MoveWithHost"): diff --git a/src/Mod/Draft/importDXF.py b/src/Mod/Draft/importDXF.py index 546a5b0f6bfa..481fde4e2313 100644 --- a/src/Mod/Draft/importDXF.py +++ b/src/Mod/Draft/importDXF.py @@ -1320,7 +1320,8 @@ def processdxf(document,filename,getShapes=False): newob.ViewObject.FontSize = draftui.fontsize else: st = rawValue(dim,3) - newob.ViewObject.FontSize = float(getdimheight(st))*TEXTSCALING + size = getdimheight(st) or 1 + newob.ViewObject.FontSize = float(size)*TEXTSCALING else: FreeCAD.Console.PrintMessage("skipping dimensions...\n") diff --git a/src/Tools/SubWCRev.py b/src/Tools/SubWCRev.py index 2cf97493db85..1f18439a5f6e 100644 --- a/src/Tools/SubWCRev.py +++ b/src/Tools/SubWCRev.py @@ -156,7 +156,7 @@ def geturl(self): match = re.match('ssh://\S+?@(\S+)',url) if match is not None: url = 'git://%s' % match.group(1) - entryscore=(url=='git://git.code.sf.net/p/free-cad/code',\ + entryscore=(url == "git://github.com/FreeCAD/FreeCAD.git",\ 'github.com' in url,branch==self.branch,\ branch=='master', '@' not in url) #used for sorting the list @@ -178,8 +178,8 @@ def revisionNumber(self, srcdir,origin=None): different form the master repository""" #referencecommit="f119e740c87918b103140b66b2316ae96f136b0e" #referencerevision=4138 - referencecommit="49646282910aeef73db44943b88df06f0957422c" - referencerevision=4244 + referencecommit="6b3d7b17a749e03bcbf2cf79bbbb903137298c44" + referencerevision=5235 result = None countallfh=os.popen("git rev-list --count %s..HEAD" % \ @@ -251,9 +251,8 @@ def extractInfo(self, srcdir): remote='origin' #used to determine the url self.geturl() origin = None #remote for the blessed master - for fetchurl in ("git.code.sf.net/p/free-cad/code",\ - "git@github.com:FreeCAD/FreeCAD_sf_master.git",\ - "https://github.com/FreeCAD/FreeCAD_sf_master.git"): + for fetchurl in ("git@github.com:FreeCAD/FreeCAD.git",\ + "https://github.com/FreeCAD/FreeCAD.git"): for key,url in self.remotes.iteritems(): if fetchurl in url: origin = key