Skip to content

Commit

Permalink
Merge branch 'Fixed-conversion' of github.com:basjan/PHPWord into #234-
Browse files Browse the repository at this point in the history
…#235-basjan
  • Loading branch information
ivanlanin committed May 11, 2014
2 parents 17e2f02 + 539a173 commit fc66030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PhpWord/Shared/Drawing.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function emuToPixels($value = 0)
*/
public static function pixelsToPoints($value = 0)
{
return $value * 0.67777777;
return $value * 0.75;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpWord/Tests/Shared/DrawingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testUnitConversions()
$this->assertEquals(round($value / 9525), $result);

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

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

0 comments on commit fc66030

Please sign in to comment.