diff options
Diffstat (limited to 'RealtimeSync/resources.cpp')
-rw-r--r-- | RealtimeSync/resources.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/RealtimeSync/resources.cpp b/RealtimeSync/resources.cpp index 4e84921d..391a1ddb 100644 --- a/RealtimeSync/resources.cpp +++ b/RealtimeSync/resources.cpp @@ -59,11 +59,11 @@ GlobalResources::GlobalResources() const wxBitmap& GlobalResources::getImageInt(const wxString& name) const { - auto iter = bitmaps.find(!contains(name, L'.') ? //assume .png ending if nothing else specified + auto it = bitmaps.find(!contains(name, L'.') ? //assume .png ending if nothing else specified name + L".png" : name); - if (iter != bitmaps.end()) - return iter->second; + if (it != bitmaps.end()) + return it->second; else { assert(false); |