Skip to content

Commit a4365f4

Browse files
committed
don't pick up empty specials
1 parent 0e1909b commit a4365f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/buildingplan/defaultitemfilters.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ DefaultItemFilters::DefaultItemFilters(color_ostream &out, PersistentDataItem &f
7272
if (elems.size() > 1) {
7373
vector<string> specs;
7474
split_string(&specs, elems[1], ",");
75-
for (auto & special : specs)
76-
specials.emplace(special);
75+
for (auto & special : specs) {
76+
if (special.size())
77+
specials.emplace(special);
78+
}
7779
}
7880
}
7981

0 commit comments

Comments
 (0)