You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/20 22:57:44 UTC

[commons-imaging] 01/02: Simplify test.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git

commit c9f11dcf89521f09276c8eab12d58b179f2e93da
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 17:52:10 2020 -0500

    Simplify test.
---
 .../java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java b/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java
index 5bb626f..a6279a1 100644
--- a/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java
+++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/xmp/JpegRewriter.java
@@ -235,7 +235,7 @@ public class JpegRewriter extends BinaryFileParser {
 
         for (final T piece : segments) {
             if (piece instanceof JFIFPieceSegment) {
-                if (filter.filter((JFIFPieceSegment) piece) ^ !reverse) {
+                if (filter.filter((JFIFPieceSegment) piece) == reverse) {
                     result.add(piece);
                 }
             } else if (!reverse) {