PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

Division by zero by trying to set width and/or height on empty drawing shape

Open cokuna-pavelkosolapov opened this issue 8 years ago • 0 comments

If you try to set width and/or height by empty Drawing Shape instance, the Resize Proportional property is by default true, because of that it triggers „Division by zero“ error. $object = new Drawing(); $object->setWidth(100)->setHeight(50); #or $object->setWidthAndHeight(100,50) it brings error: "Division by zero"

I fixed this issue and wanted to upload bug-fix (pull-request), but i have no permission or i do something wrong... In attachment you can find my suggestion to fix this issue PHPPresentation.zip

cokuna-pavelkosolapov avatar Feb 20 '17 13:02 cokuna-pavelkosolapov