Draft: Fix incorrect use of in operator
Looking at the surrounding code, this should be `==` rather than `in`. The code does work as intended, because a string is always a substring of itself, but better to fix it anyway. Seems this was broken since this code was first introduced in commit 193339991f (Draft: clean up ViewProviderLabel class)
This commit is contained in:
@@ -394,7 +394,7 @@ class ViewProviderLabel(ViewProviderDraftAnnotation):
|
||||
if s:
|
||||
self.arrowpos.scaleFactor.setValue((s, s, s))
|
||||
|
||||
elif prop in "Justification" and "Justification" in properties:
|
||||
elif prop == "Justification" and "Justification" in properties:
|
||||
if vobj.Justification == "Left":
|
||||
self.text2d.justification = coin.SoText2.LEFT
|
||||
self.text3d.justification = coin.SoAsciiText.LEFT
|
||||
|
||||
Reference in New Issue
Block a user