Fix pixelsToPoints conversion (for HTML col width) (#1733)
This commit is contained in:
parent
2307df5387
commit
4133bcf1b4
|
@ -98,7 +98,7 @@ class Drawing
|
||||||
*/
|
*/
|
||||||
public static function pixelsToPoints($pValue)
|
public static function pixelsToPoints($pValue)
|
||||||
{
|
{
|
||||||
return $pValue * 0.67777777;
|
return $pValue * 0.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +111,7 @@ class Drawing
|
||||||
public static function pointsToPixels($pValue)
|
public static function pointsToPixels($pValue)
|
||||||
{
|
{
|
||||||
if ($pValue != 0) {
|
if ($pValue != 0) {
|
||||||
return (int) ceil($pValue * 1.333333333);
|
return (int) ceil($pValue / 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue