minor Py3 issue fixed

https://forum.freecadweb.org/viewtopic.php?f=10&t=30624&p=265892#p265892
fixing as suggested here:
https://hynek.me/articles/hasattr/
This commit is contained in:
easyw
2018-11-06 12:28:41 +01:00
committed by Yorik van Havre
parent b6c0cf8ce5
commit dd8b8b6297

View File

@@ -7390,7 +7390,7 @@ class ViewProviderDraftText:
if "FontSize" in vobj.PropertiesList:
self.font.size = vobj.FontSize.Value
elif prop == "Justification":
if "Justification" in vobj.PropertiesList:
if getattr(vobj.PropertiesList, "Justification", None) is not None:
from pivy import coin
try:
if vobj.Justification == "Left":