Skip to content

Commit

Permalink
Fix UpdateLinkedZooms (do not update twice)
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Mar 9, 2024
1 parent ec7639d commit 3200cf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/immvision/internal/image_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ namespace ImmVision
for (auto& otherCacheKey : mCacheParams.Keys())
{
CachedParams & otherCache = mCacheParams.Get(otherCacheKey);

if (otherCache.ParamsPtr == currentCache.ParamsPtr)
continue;

if ((otherCacheKey != id) && (otherCache.ParamsPtr->ZoomKey == zoomKey))
{
cv::Size otherDisplayedImageSize = otherCache.ParamsPtr->ImageDisplaySize;
Expand Down

0 comments on commit 3200cf3

Please sign in to comment.