Skip to content

Commit 13dc3bb

Browse files
authored
Merge pull request #874 from bskrtich/develop
Fix incorrect image size between windows and mac.
2 parents 5412df2 + 49492b2 commit 13dc3bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/Style/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class Image extends Frame
6161
public function __construct()
6262
{
6363
parent::__construct();
64-
$this->setUnit('px');
64+
$this->setUnit(self::UNIT_PT);
6565

66-
// Backward compatilibity setting
66+
// Backward compatibility setting
6767
// @todo Remove on 1.0.0
6868
$this->setWrap(self::WRAPPING_STYLE_INLINE);
6969
$this->setHPos(self::POSITION_HORIZONTAL_LEFT);

0 commit comments

Comments
 (0)