Skip to content

Commit

Permalink
fix #58481: Clone QImage when cloning Image
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed May 1, 2015
1 parent 983dd11 commit 77389b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ Image::Image(const Image& img)
_linkPath = img._linkPath;
_linkIsValid = img._linkIsValid;
if (imageType == ImageType::RASTER)
rasterDoc = img.rasterDoc;
rasterDoc = new QImage(*img.rasterDoc);
else if (imageType == ImageType::SVG)
svgDoc = img.svgDoc;
svgDoc = new QSvgRenderer(img.svgDoc);
setZ(img.z());
}

Expand Down

0 comments on commit 77389b3

Please sign in to comment.