Skip to content

Commit

Permalink
Size fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Mar 2, 2025
1 parent 9eb5339 commit 2207640
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/tlTimeline/CompareOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,13 @@ namespace tl
for (const auto& i : videoData)
{
dtk::ImageInfo info;
if (!i.layers.empty() && i.layers.front().image)
for (const auto& layer : i.layers)
{
info = i.layers.front().image->getInfo();
if (layer.image)
{
info = layer.image->getInfo();
break;
}
}
infos.push_back(info);
}
Expand Down Expand Up @@ -193,9 +197,13 @@ namespace tl
for (const auto& i : videoData)
{
dtk::ImageInfo info;
if (!i.layers.empty() && i.layers.front().image)
for (const auto& layer : i.layers)
{
info = i.layers.front().image->getInfo();
if (layer.image)
{
info = layer.image->getInfo();
break;
}
}
infos.push_back(info);
}
Expand Down

0 comments on commit 2207640

Please sign in to comment.