Fix pixelsToPoints conversion (for HTML col width) (#1733)

This commit is contained in:
Guilliam Xavier 2020-12-10 23:46:56 +01:00 committed by GitHub
parent 2307df5387
commit 4133bcf1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class Drawing
*/
public static function pixelsToPoints($pValue)
{
return $pValue * 0.67777777;
return $pValue * 0.75;
}
/**
@ -111,7 +111,7 @@ class Drawing
public static function pointsToPixels($pValue)
{
if ($pValue != 0) {
return (int) ceil($pValue * 1.333333333);
return (int) ceil($pValue / 0.75);
}
return 0;