Skip to content

Commit

Permalink
booru/image: Initialize m_LastDraw
Browse files Browse the repository at this point in the history
Initial value is unknown so this might have caused images to never get
drawn while loading.
  • Loading branch information
ahodesuka committed Dec 5, 2017
1 parent f34b4d5 commit dc6fd27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/booru/image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Image::Image(const std::string &path, const std::string &url,
m_PostUrl(postUrl),
m_Tags(tags),
m_Page(page),
m_LastDraw(std::chrono::steady_clock::now()),
m_Curler(m_Url, page.get_site()->get_share_handle()),
m_ThumbnailCurler(m_ThumbnailUrl, page.get_site()->get_share_handle()),
m_PixbufError(false)
Expand Down

0 comments on commit dc6fd27

Please sign in to comment.