Skip to content

Commit

Permalink
Pass context to endingIfd
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Jun 19, 2022
1 parent b86673f commit 4cd33e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/com/drew/imaging/tiff/TiffHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public interface TiffHandler
boolean tryEnterSubIfd(int tagId);
boolean hasFollowerIfd();

void endingIFD();
void endingIFD(TiffReaderContext context);

@Nullable
Long tryCustomProcessFormat(int tagId, int formatCode, long componentCount);
Expand Down
2 changes: 1 addition & 1 deletion Source/com/drew/imaging/tiff/TiffReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static void processIfd(@NotNull final TiffHandler handler,
}
}
} finally {
handler.endingIFD();
handler.endingIFD(context);
}
}

Expand Down
3 changes: 2 additions & 1 deletion Source/com/drew/metadata/tiff/DirectoryTiffHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
package com.drew.metadata.tiff;

import com.drew.imaging.tiff.TiffHandler;
import com.drew.imaging.tiff.TiffReaderContext;
import com.drew.lang.Rational;
import com.drew.lang.annotations.NotNull;
import com.drew.lang.annotations.Nullable;
Expand Down Expand Up @@ -51,7 +52,7 @@ protected DirectoryTiffHandler(Metadata metadata, @Nullable Directory parentDire
}

@Override
public void endingIFD()
public void endingIFD(TiffReaderContext context)
{
_currentDirectory = _directoryStack.empty() ? null : _directoryStack.pop();
}
Expand Down

0 comments on commit 4cd33e7

Please sign in to comment.