Prevent division by zero and force ghostscript run

Authored by elvisangelaccio on Dec 28 2019, 6:53 PM.

Description

Prevent division by zero and force ghostscript run

The scale variable can be zero since it's an int. This code should
probably be refactored to use floats, but since no one touched it in
years, this is a quick workaround to not make it crash and to get a
working thumbnail by forcing a ghostscript run with the break;.

BUG: 406463
FIXED-IN: 19.12.1

Details

Committed
elvisangelaccioDec 28 2019, 6:58 PM
Parents
R373:c3d28271e1a6: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown