Skip to content

Commit 49492b2

Browse files
committed
Fix incorrect image size between windows and mac.
See Issue #224
1 parent c710690 commit 49492b2

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
@@ -60,9 +60,9 @@ class Image extends Frame
6060
public function __construct()
6161
{
6262
parent::__construct();
63-
$this->setUnit('px');
63+
$this->setUnit(self::UNIT_PT);
6464

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

0 commit comments

Comments
 (0)