We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa28d4f commit 370e711Copy full SHA for 370e711
extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton/script.py
@@ -197,7 +197,7 @@ def Execute(self, uiapp):
197
if vw.ViewType == DB.ViewType.Legend:
198
legends.append(vw)
199
break
200
- if len(legends) < 0:
+ if len(legends) == 0:
201
task2 = UI.TaskDialog("Color Elements by Parameter")
202
task2.MainInstruction = "In order to create a new legend, you need to have at least one. Please, create a legend view."
203
wndw.TopMost = False
0 commit comments