additional checks

This commit is contained in:
Konstantin Bulenkov
2012-02-11 15:21:45 +01:00
parent 035c4cd67f
commit d585fdd30f
@@ -193,6 +193,11 @@ public class DirDiffElement {
}
public void setOperation(@NotNull DirDiffOperation operation) {
if (myType == DType.EQUAL || myType == DType.SEPARATOR) return;
if (myType == DType.TARGET && operation == COPY_TO) return;
if (myType == DType.SOURCE && operation == COPY_FROM) return;
if (myType == DType.CHANGED && operation == DELETE) return;
myOperation = operation;
}