Code

fix bbox calculation for groups that contain groups with nothing in them (zero bbox...
authorjohanengelen <johanengelen@users.sourceforge.net>
Wed, 25 Jun 2008 21:40:04 +0000 (21:40 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Wed, 25 Jun 2008 21:40:04 +0000 (21:40 +0000)
src/sp-item.cpp

index 10f2683b83687be2055718ae2bbed7a3c7fb5a55..33f140de24417947879a3e595e78ec74aa55be05 100644 (file)
@@ -821,7 +821,7 @@ sp_item_invoke_bbox_full(SPItem const *item, NR::Maybe<NR::Rect> *bbox, NR::Matr
         
         // When x0 > x1 or y0 > y1, the bbox is considered to be "nothing", although it has not been 
         // explicitely defined this way for NRRects (as opposed to NR::Maybe<NR::Rect>)
-        *bbox = NR::Nothing();
+        // So union bbox with nothing = do nothing, just return
         return;
     }