From b9049cefad82bd62a663e4ae4048d7574563bdfc Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 2 Jan 2004 22:01:08 +0000 Subject: minor stuff --- src/FbTk/Image.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/FbTk/Image.cc b/src/FbTk/Image.cc index 98b602c..4ccda5b 100644 --- a/src/FbTk/Image.cc +++ b/src/FbTk/Image.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Image.cc,v 1.3 2003/12/16 17:06:51 fluxgen Exp $ +// $Id: Image.cc,v 1.4 2004/01/02 22:01:08 fluxgen Exp $ #include "Image.hh" #include "StringUtil.hh" @@ -65,14 +65,16 @@ PixmapWithMask *Image::load(const std::string &filename, int screen_num) { if (pm == 0 && s_search_paths.size()) { // first we need to get basename of current filename std::string base_filename = StringUtil::basename(filename); + std::string path = ""; // append each search path and try to load StringList::iterator it = s_search_paths.begin(); StringList::iterator it_end = s_search_paths.end(); for (; it != it_end && pm == 0; ++it) { // append search path and try load it - std::string path = StringUtil::expandFilename(*it); + path = StringUtil::expandFilename(*it); pm = s_image_map[extension]->load(path + "/" + base_filename, screen_num); } + } return pm; -- cgit v0.11.2