From ecb1524f8da7901338b263384fed3c612f117b4c Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:22:36 +0200 Subject: 5.11 --- lib/resources.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/resources.cpp') diff --git a/lib/resources.cpp b/lib/resources.cpp index 6d586e54..7d46739e 100644 --- a/lib/resources.cpp +++ b/lib/resources.cpp @@ -86,11 +86,11 @@ GlobalResources::GlobalResources() const wxBitmap& GlobalResources::getImageInt(const wxString& imageName) const { - auto iter = bitmaps.find(!contains(imageName, L'.') ? //assume .png ending if nothing else specified + auto it = bitmaps.find(!contains(imageName, L'.') ? //assume .png ending if nothing else specified imageName + L".png" : imageName); - if (iter != bitmaps.end()) - return iter->second; + if (it != bitmaps.end()) + return it->second; else { assert(false); -- cgit