Skip to content

Commit

Permalink
Fixing annotations showing up on incorrect images
Browse files Browse the repository at this point in the history
  • Loading branch information
plt-joey committed Oct 18, 2024
1 parent 089ac3e commit f267d7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2927,9 +2927,13 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
imageURI = imageId.substring(colonIndex + 1);
}

const endsWith = referencedImageId?.endsWith(imageURI);
if (endsWith) {
return endsWith;
const referenceColonIndex = referencedImageId.indexOf(':');
const referencedImageURI = referencedImageId.substring(
referenceColonIndex + 1
);

if (referencedImageURI === imageURI) {
return true;
}

// if camera focal point is provided, we can use that as a point
Expand Down

0 comments on commit f267d7c

Please sign in to comment.