From 2563e98f556a5f03da0575689075bae55d1cb21d Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Mon, 18 Jan 2021 17:43:55 +0100 Subject: [PATCH] Fix issue on rendering with filters when no bbox We are calling to a rect when optional is false Fix: https://gitlab.com/inkscape/inkscape/-/issues/2176#note_485024060 --- src/display/drawing-item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp index 2c6848f6c2..dfe0fb945c 100644 --- a/src/display/drawing-item.cpp +++ b/src/display/drawing-item.cpp @@ -1215,7 +1215,7 @@ Geom::OptIntRect DrawingItem::_cacheRect() Geom::OptIntRect canvas = r; expandByScale(*canvas, 0.5); Geom::OptIntRect valid = Geom::intersect(canvas, _bbox); - if (!valid) { + if (!valid && _bbox) { valid = _bbox; // contract the item _bbox to get reduced size to render. $ seems good enought expandByScale(*valid, 0.5); -- GitLab