Skip to content

Commit fc66030

Browse files
committed
Merge branch 'Fixed-conversion' of github.com:basjan/PHPWord into #234-#235-basjan
2 parents 17e2f02 + 539a173 commit fc66030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PhpWord/Shared/Drawing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function emuToPixels($value = 0)
5656
*/
5757
public static function pixelsToPoints($value = 0)
5858
{
59-
return $value * 0.67777777;
59+
return $value * 0.75;
6060
}
6161

6262
/**

tests/PhpWord/Tests/Shared/DrawingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testUnitConversions()
4444
$this->assertEquals(round($value / 9525), $result);
4545

4646
$result = Drawing::pixelsToPoints($value);
47-
$this->assertEquals($value * 0.67777777, $result);
47+
$this->assertEquals($value * 0.75, $result);
4848

4949
$result = Drawing::pointsToPixels($value);
5050
$this->assertEquals($value * 1.333333333, $result);

0 commit comments

Comments
 (0)