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:
parent
ef665c5982
commit
121b42d507
1 changed files with 3 additions and 0 deletions
|
|
@ -1209,6 +1209,9 @@ private:
|
|||
else
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue