Skip to content

Commit

Permalink
Fixing scope issue and unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jan 28, 2021
1 parent ea9e774 commit 71c6c23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/QtImageReader.cpp
Expand Up @@ -157,11 +157,9 @@ std::shared_ptr<Frame> QtImageReader::GetFrame(int64_t requested_frame)

// Scale image smaller (or use a previous scaled image)
if (!cached_image || (max_size.width() != current_max_size.width() || max_size.height() != current_max_size.height())) {
bool loaded = false;

// Check for SVG files and rasterize them to QImages
if (path.toLower().endsWith(".svg") || path.toLower().endsWith(".svgz")) {
loaded = load_svg_path(path);
load_svg_path(path);
}

// We need to resize the original image to a smaller image (for performance reasons)
Expand Down

0 comments on commit 71c6c23

Please sign in to comment.