summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-05 18:16:06 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-05 18:16:06 +0000
commitba7e1778284809b19528528ca6e8cada25e18801 (patch)
tree00c1038b5d3de5046e203c381436f1698bc4b8e4 /src
parentUse is_straight_curve() instead of three separate dynamic casts (diff)
downloadinkscape-ba7e1778284809b19528528ca6e8cada25e18801.tar.gz
inkscape-ba7e1778284809b19528528ca6e8cada25e18801.zip
replace unnecessary exception catching with a check beforehand.
(bzr r6565)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-filter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/nr-filter.cpp b/src/display/nr-filter.cpp
index f7a04fd50..0e608e901 100644
--- a/src/display/nr-filter.cpp
+++ b/src/display/nr-filter.cpp
@@ -115,9 +115,9 @@ int Filter::render(NRArenaItem const *item, NRPixBlock *pb)
FilterSlot slot(_slot_count, item);
Rect item_bbox;
- try {
- item_bbox = *item->item_bbox;
- } catch (NR::IsNothing) {
+ if (item->item_bbox) {
+ item_bbox = *(item->item_bbox);
+ } else {
// Bounding box might not exist, so create a dummy one.
Point zero(0, 0);
item_bbox = Rect(zero, zero);