Skip to content

Commit

Permalink
booru/imagelist: Reduce m_Size when unsupported file is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
ahodesuka committed Dec 5, 2017
1 parent 768aa90 commit c806a59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/booru/imagelist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ void ImageList::load(const xmlDocument &posts, const Page &page)

if (Image::is_valid_extension(imageUrl))
m_Images.push_back(std::make_shared<Booru::Image>(imagePath, imageUrl, thumbPath, thumbUrl, postUrl, tags, page));
else
--m_Size;
}

if (m_Images.empty())
Expand Down

0 comments on commit c806a59

Please sign in to comment.