diff --git a/src/graphics/GraphicsCacheItem.cpp b/src/graphics/GraphicsCacheItem.cpp index e4bfb019f9..fafa78bdcb 100644 --- a/src/graphics/GraphicsCacheItem.cpp +++ b/src/graphics/GraphicsCacheItem.cpp @@ -359,7 +359,7 @@ bool CacheItem::Impl::tryDisplayFormat(FileName & filename, string & from) return false; } - zipped_ = formats.isZippedFile(filename); + zipped_ = formats.isZippedFile(filename_); if (zipped_) { unzipped_filename_ = FileName::tempName( filename_.toFilesystemEncoding());