Skip to content

Commit

Permalink
recreate too small cached thumbnails #584
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnorantGuru committed Oct 18, 2015
1 parent a321585 commit a9850b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
1.0.4+next
recreate too small cached thumbnails #584
1.0.4 2015-10-17:
new spacefm-installer replaces self-extrct and install #571
README rewritten and manual updated for new installer #571
Expand Down
7 changes: 6 additions & 1 deletion src/vfs/vfs-thumbnail-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,12 @@ static GdkPixbuf* _vfs_thumbnail_load( const char* file_path, const char* uri,

/* load existing thumbnail */
thumbnail = gdk_pixbuf_new_from_file( thumbnail_file, NULL );
if ( !thumbnail ||
if ( thumbnail )
{
w = gdk_pixbuf_get_width( thumbnail );
h = gdk_pixbuf_get_height( thumbnail );
}
if ( !thumbnail || ( w < size && h < size ) ||
!( thumb_mtime = gdk_pixbuf_get_option( thumbnail,
"tEXt::Thumb::MTime" ) ) ||
atol( thumb_mtime ) != mtime )
Expand Down

0 comments on commit a9850b0

Please sign in to comment.