Skip to content

Commit

Permalink
fix #219521: Add a SVG file by double-click, then clear it in the pal…
Browse files Browse the repository at this point in the history
…ette, leads to crash
  • Loading branch information
lasconic committed Aug 15, 2017
1 parent 2d9d13c commit 704bf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/image.cpp
Expand Up @@ -67,7 +67,7 @@ Image::Image(const Image& img)
if (imageType == ImageType::RASTER)
rasterDoc = img.rasterDoc ? new QImage(*img.rasterDoc) : 0;
else if (imageType == ImageType::SVG)
svgDoc = img.svgDoc ? new QSvgRenderer(img.svgDoc) : 0;
svgDoc = img.svgDoc ? new QSvgRenderer(_storeItem->buffer()) : 0;
setZ(img.z());
}

Expand Down

0 comments on commit 704bf4f

Please sign in to comment.