Skip to content

Commit

Permalink
Allow PixelsService.getImage to use pixels.getImage if loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Mar 13, 2024
1 parent aa06880 commit 953b48c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public String getUri(IObject object) {
* @return See above.
*/
protected Image getImage(Pixels pixels) {
if (pixels.getImage().isLoaded()) {
return pixels.getImage();
}
return iQuery.get(Image.class, pixels.getImage().getId());
}

Expand Down

0 comments on commit 953b48c

Please sign in to comment.