We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97b9bef + 7d9c7a8 commit 8303744Copy full SHA for 8303744
src/Common/Drawing.php
@@ -259,7 +259,7 @@ public static function pointsToEmu(float $pValue = 0): int
259
return 0;
260
}
261
262
- return (int) round(($pValue / 0.75) / 9525);
+ return (int) round(($pValue / 0.75) * 9525);
263
264
265
/**
tests/Common/Tests/DrawingTest.php
@@ -79,7 +79,7 @@ public function testPointsEmu(): void
79
$value = rand(1, 100);
80
81
$this->assertEquals(0, Drawing::pointsToEmu());
82
- $this->assertEquals(round($value / 0.75 / 9525), Drawing::pointsToEmu($value));
+ $this->assertEquals(round($value / 0.75 * 9525), Drawing::pointsToEmu($value));
83
84
85
public function testCentimetersPoints(): void
0 commit comments