Skip to content

Commit 370e711

Browse files
authored
Color splasher - Fixed syntax error
1 parent fa28d4f commit 370e711

File tree

1 file changed

+1
-1
lines changed
  • extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton

1 file changed

+1
-1
lines changed

extensions/pyRevitTools.extension/pyRevit.tab/Analysis.panel/ColorSplasher.pushbutton/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def Execute(self, uiapp):
197197
if vw.ViewType == DB.ViewType.Legend:
198198
legends.append(vw)
199199
break
200-
if len(legends) < 0:
200+
if len(legends) == 0:
201201
task2 = UI.TaskDialog("Color Elements by Parameter")
202202
task2.MainInstruction = "In order to create a new legend, you need to have at least one. Please, create a legend view."
203203
wndw.TopMost = False

0 commit comments

Comments
 (0)