1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

SVG: Set the bounding box of images to ensure they are positioned correctly

This commit is contained in:
ed 2018-08-15 12:54:23 +01:00
parent ef665c5982
commit 121b42d507

View file

@ -1209,6 +1209,9 @@ private:
else else
di->setTransform (transform); di->setTransform (transform);
di->setBoundingBox ({ (float) xml->getDoubleAttribute ("x", 0.0), (float) xml->getDoubleAttribute ("y", 0.0),
(float) xml->getDoubleAttribute ("width", 0.0), (float) xml->getDoubleAttribute ("height", 0.0) });
return di; return di;
} }
} }