]> git.tdb.fi Git - libs/gui.git/commitdiff
Clear Image data before loading a new image
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Feb 2021 13:49:22 +0000 (15:49 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Feb 2021 13:49:22 +0000 (15:49 +0200)
source/graphics/image.cpp

index e22d8eaef79958eb7ff83d389de018d0365c53c5..50e85dfe0981ca9b4ae1362d0de0fdc8439872f1 100644 (file)
@@ -67,6 +67,7 @@ void Image::load_io(IO::Seekable &io)
 
 void Image::load(ImageLoader &loader)
 {
+       data = Data();
        loader.load(data);
 }