File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1144,8 +1144,8 @@ public function load($pFilename)
11441144 $ shadow = $ objDrawing ->getShadow ();
11451145 $ shadow ->setVisible (true );
11461146 $ shadow ->setBlurRadius (Drawing::EMUToPixels ((int ) self ::getArrayItem ($ outerShdw ->attributes (), 'blurRad ' )));
1147- $ shadow ->setDistance (Drawing::EMUToPixels (self ::getArrayItem ($ outerShdw ->attributes (), 'dist ' )));
1148- $ shadow ->setDirection (Drawing::angleToDegrees (self ::getArrayItem ($ outerShdw ->attributes (), 'dir ' )));
1147+ $ shadow ->setDistance (Drawing::EMUToPixels (( int ) self ::getArrayItem ($ outerShdw ->attributes (), 'dist ' )));
1148+ $ shadow ->setDirection (Drawing::angleToDegrees (( int ) self ::getArrayItem ($ outerShdw ->attributes (), 'dir ' )));
11491149 $ shadow ->setAlignment ((string ) self ::getArrayItem ($ outerShdw ->attributes (), 'algn ' ));
11501150 $ clr = isset ($ outerShdw ->srgbClr ) ? $ outerShdw ->srgbClr : $ outerShdw ->prstClr ;
11511151 $ shadow ->getColor ()->setRGB (self ::getArrayItem ($ clr ->attributes (), 'val ' ));
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public static function sizeRow(Worksheet $worksheet, $row = 1)
7777 // then we have a default row dimension with explicit height
7878 $ defaultRowDimension = $ worksheet ->getDefaultRowDimension ();
7979 $ rowHeight = $ defaultRowDimension ->getRowHeight ();
80- $ pixelRowHeight = Drawing::pointsToPixels ($ rowHeight );
80+ $ pixelRowHeight = Drawing::pointsToPixels (( int ) $ rowHeight );
8181 } else {
8282 // we don't even have any default row dimension. Height depends on default font
8383 $ pointRowHeight = Font::getDefaultRowHeightByFont ($ font );
You can’t perform that action at this time.
0 commit comments