Skip to content

Commit 4dcde8c

Browse files
committed
PHPWord_Shared_Drawing::centimetersToPixels() conversion
1 parent 9bae85e commit 4dcde8c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Classes/PHPWord/Shared/Drawing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static function pixelsToCentimeters($pValue = 0)
128128
public static function centimetersToPixels($pValue = 0)
129129
{
130130
if ($pValue != 0) {
131-
return $pValue * 0.028;
131+
return $pValue / 0.028;
132132
} else {
133133
return 0;
134134
}

changelog.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ Changes in branch for release 0.7.1 :
4444
- Feature: (ivanlanin) GH-87 - Paragraph: Ability to define parent style (basedOn) and style for following paragraph (next)
4545
- Feature: (jeroenmoors) GH-44 GH-88 - Clone table rows on the fly when using a template document
4646
- Feature: (deds) GH-16 - Initial addition of basic footnote support
47-
- Feature: (ivanlanin) GH-91 - Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before
47+
- Feature: (ivanlanin) GH-92 - Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before
48+
- General: (ivanlanin) GH-93 - General: PHPWord_Style_Font refactoring
49+
- General: (ivanlanin) GH-93 - Font: Use points instead of halfpoints internally. Conversion to halfpoints done during XML Writing.
50+
- Bugfix: (ivanlanin) GH-94 - General: PHPWord_Shared_Drawing::centimetersToPixels() conversion
4851
- QA: (Progi1984) - UnitTests
4952

5053
Changes in branch for release 0.7.0 :

0 commit comments

Comments
 (0)