Skip to content

Commit

Permalink
restore reader code change
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Mar 22, 2024
1 parent 3c1ffea commit d4739ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions _aicspylibczi/Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,7 @@ Reader::tileBoundingBoxesWith(SubblockSortable& subblocksToFind_)
auto extractor = [&](const SubblockIndexVec::value_type& match_) {
auto subblk = m_czireader->ReadSubBlock(match_.second);
auto sbkInfo = subblk->GetSubBlockInfo();
libCZI::IntRect sbkRect = sbkInfo.logicalRect;
sbkRect.w = sbkInfo.physicalSize.w;
sbkRect.h = sbkInfo.physicalSize.h;
return TileBBoxMap::value_type(match_.first, sbkRect);
return TileBBoxMap::value_type(match_.first, sbkInfo.logicalRect);
};

transform(matches.begin(), matches.end(), std::inserter(ans, ans.end()), extractor);
Expand Down

0 comments on commit d4739ba

Please sign in to comment.