coverity#1256664 Division or modulo by float zero

and

coverity#1256664 Division or modulo by float zero

Change-Id: I62c923aad9a21b517f6422365ccf94311e0709b6
Revert "coverity#1242942 Use of untrusted scalar value"

This reverts commit 093b3d30f257a01122042eb4d116ee54fbdb7033.

it didn't help one bit to get coverity to see the bounds check

Change-Id: Ibf01c7dea2b220290511871c2a650051295d389d
coverity#1213364 Untrusted loop bound

Change-Id: I586b9550b09a485cedd13e0e4c637f253e8eafd0
try and help coverity out here

wrt #3 of 1213364 Untrusted loop bound

Change-Id: I4a47d4e1d6ebca14921c7e001d28354d687968d0
effectively expand init_header into member init list

this is all that init_header does anyway

Change-Id: If1607ab25b43bd313d2d2f1da65c20fc87ae7951
coverity#707985 Uninitialized scalar field

Change-Id: I1847b2900b513cc9b7b47767a15fb7e11d0abf26
cairo_restore without matching cairo_save

Change-Id: I74496f40a532f9202e8729b8a81ef20ee86a5133
mpSurface->getCairo() == mpCairo

so make that clearer, and we only need to pass a Cairo context
not a surface here

Change-Id: If385dbd4e8a546fa18c2f93650428fe0ed0c76fc
fdo#42785 fix crashing again with this doc in 4-4 series

Change-Id: I834c97a373c55733515e8e1e4945b0f1cd972f89