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 7ea6fd8 commit 180ad68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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 180ad68

Please sign in to comment.