--- qt/qtsvg/src/svg/qsvghandler.cpp 2014-04-10 20:37:12.000000000 +0200 +++ qt_patched/qtsvgsrc/svg/qsvghandler.cpp 2017-02-07 11:10:35.463511422 +0100 @@ -3001,8 +3001,8 @@ //we draw rounded rect from 0...99 //svg from 0...bounds.width()/2 so we're adjusting the //coordinates - nrx *= (100/(bounds.width()/2)); - nry *= (100/(bounds.height()/2)); + if(bounds.width()) nrx *= (100/(bounds.width()/2)); + if(bounds.height()) nry *= (100/(bounds.height()/2)); QSvgNode *rect = new QSvgRect(parent, bounds, int(nrx),