mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-14 20:16:34 +00:00
Fix pixelsToPoints conversion (for HTML col width) (#1733)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user