ofz#5295 fix division by 0
ofz#5295 fix division by 0

Change-Id: I2df174d871ec721210988f5348ebb719cd4a100d

LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand,LibreOffice/libfreehand