Skip to content

Commit 9c04f75

Browse files
committed
Emulation: don't rotate if angle is 0
1 parent 376e6b3 commit 9c04f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Emulation/Canvas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function write(
9191

9292
$this->image->drawImage($canvas);
9393

94-
if ($rotation) {
94+
if ($rotation->getDegrees()) {
9595
$this->image->rotateImage($background, $rotation->getDegrees());
9696
}
9797
}

0 commit comments

Comments
 (0)