PHPPresentation
PHPPresentation copied to clipboard
Division by zero by trying to set width and/or height on empty drawing shape
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