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:
Matthijs Kooijman
2021-06-29 15:21:56 +02:00
parent 218f58b4f9
commit 2f05f86f6c

View File

@@ -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