Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions vtm/src/org/oscim/theme/rule/Rule.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright 2016 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
Expand Down Expand Up @@ -318,10 +318,16 @@ public boolean matchesTags(Tag[] tags) {
if (!containsKeys(tags))
return true;

for (Tag tag : tags)
for (String value : values)
if (Utils.equals(value, tag.value))
return !exclusive;
for (Tag tag : tags) {
for (String key : keys) {
if (Utils.equals(key, tag.key)) {
for (String value : values) {
if (Utils.equals(value, tag.value))
return !exclusive;
}
}
}
}

return exclusive;
}
Expand Down