mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
common scene: fixing the initial values of variables in the bounds getter
The values of the most bottom right corner of the scene bounding box should be initialized with the biggest negative values. Also an empty line removed.
This commit is contained in:
parent
aeb10fafec
commit
fbd24c3c93
1 changed files with 2 additions and 3 deletions
|
@ -100,7 +100,6 @@ struct Scene::Impl
|
|||
uint32_t y2 = 0;
|
||||
|
||||
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
|
||||
|
||||
auto region = (*paint)->pImpl->bounds(renderer);
|
||||
|
||||
//Merge regions
|
||||
|
@ -119,8 +118,8 @@ struct Scene::Impl
|
|||
|
||||
auto x1 = FLT_MAX;
|
||||
auto y1 = FLT_MAX;
|
||||
auto x2 = 0.0f;
|
||||
auto y2 = 0.0f;
|
||||
auto x2 = -FLT_MAX;
|
||||
auto y2 = -FLT_MAX;
|
||||
|
||||
for (auto paint = paints.data; paint < (paints.data + paints.count); ++paint) {
|
||||
auto x = FLT_MAX;
|
||||
|
|
Loading…
Add table
Reference in a new issue