Skip to content

Commit

Permalink
Clear target image before loading it
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvlek committed Mar 5, 2013
1 parent 924dcba commit 7ace891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TargetImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ bool TargetImage::IsLoaded()

void TargetImage::loadFromFile(const std::string& filename)
{
m_imp->clear();
m_imp->loadFromFile(filename);
_Loaded = true;
std::cout << "[ TargetImage::loadFromFile() ] loaded " << filename << std::endl;
Expand Down

0 comments on commit 7ace891

Please sign in to comment.