Skip to content

Commit 3172be7

Browse files
author
stoecker
committed
fix boolean logic broken in r19398, see #21840
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19402 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent 439504d commit 3172be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public final boolean isDirtyRelation() {
152152

153153
@Override
154154
public final boolean isDirtyRelation(boolean ignoreUninterestingTags) {
155-
if (relation != null && relation.getDataSet() == null &&
156-
relationSnapshot != null && relationSnapshot.getDataSet() == null) {
155+
if (relation == null || relation.getDataSet() == null ||
156+
relationSnapshot == null || relationSnapshot.getDataSet() == null) {
157157
return false;
158158
}
159159

0 commit comments

Comments
 (0)