index 85df3351ff3d4e2312afcc78867cdf5aad5fd6aa..683c4f83d45fe859bf13c04a16dd19f9ea7f0c9f 100644 (file)
int FilterOffset::render(FilterSlot &slot, FilterUnits const &units) {
NRPixBlock *in = slot.get(_input);
- NRPixBlock *out = new NRPixBlock;
-
// Bail out if source image is missing
if (!in) {
g_warning("Missing source image for feOffset (in=%d)", _input);
return 1;
}
+ NRPixBlock *out = new NRPixBlock;
+
Matrix trans = units.get_matrix_primitiveunits2pb();
Point offset(dx, dy);
offset *= trans;