Fix a crash that can occure when creating the thumbnail (no issue)
This commit is contained in:
@@ -2224,7 +2224,7 @@ bool Thumbnail::readAEHistogram (const Glib::ustring& fname)
|
|||||||
FILE* f = g_fopen (fname.c_str (), "rb");
|
FILE* f = g_fopen (fname.c_str (), "rb");
|
||||||
|
|
||||||
if (!f) {
|
if (!f) {
|
||||||
aeHistogram (0);
|
aeHistogram.reset();
|
||||||
} else {
|
} else {
|
||||||
aeHistogram (65536 >> aeHistCompression);
|
aeHistogram (65536 >> aeHistCompression);
|
||||||
fread (&aeHistogram[0], 1, (65536 >> aeHistCompression)*sizeof (aeHistogram[0]), f);
|
fread (&aeHistogram[0], 1, (65536 >> aeHistCompression)*sizeof (aeHistogram[0]), f);
|
||||||
|
Reference in New Issue
Block a user