Skip to content

Commit

Permalink
Fix offset arg still used in SVGGroup::draw
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa committed Oct 5, 2016
1 parent dfe51c4 commit 2f817a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Nodes/Structures/SVGGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function toXMLString()
return $s;
}

public function draw(SVGRenderingHelper $rh, $scaleX, $scaleY, $offsetX = 0, $offsetY = 0)
public function draw(SVGRenderingHelper $rh, $scaleX, $scaleY)
{

// cannot inherit opacity, so getStyle instead of getComputedStyle
Expand All @@ -46,13 +46,13 @@ public function draw(SVGRenderingHelper $rh, $scaleX, $scaleY, $offsetX = 0, $of
$buffer = $rh->createBuffer();
for ($i = 0, $n = $this->countChildren(); $i < $n; ++$i) {
$child = $this->getChild($i);
$child->draw($buffer, $scaleX, $scaleY, $offsetX, $offsetY);
$child->draw($buffer, $scaleX, $scaleY);
}
$rh->drawBuffer($buffer, $opacity);
} else {
for ($i = 0, $n = $this->countChildren(); $i < $n; ++$i) {
$child = $this->getChild($i);
$child->draw($rh, $scaleX, $scaleY, $offsetX, $offsetY);
$child->draw($rh, $scaleX, $scaleY);
}
}
}
Expand Down

0 comments on commit 2f817a9

Please sign in to comment.