From: pjrm Date: Wed, 23 May 2007 12:31:31 +0000 (+0000) Subject: Clone Tiler: Change bbox calculation from the default APPROXIMATE_BBOX to GEOMETRIC_B... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7fb11ff4ed370b79f488673bddbd5505e41110a6;p=inkscape.git Clone Tiler: Change bbox calculation from the default APPROXIMATE_BBOX to GEOMETRIC_BBOX, as requested in bug #1722238. --- diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index a6d9ff0a0..fe370c522 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -1087,7 +1087,13 @@ clonetiler_apply (GtkWidget *widget, void *) x0 = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-x0", 0); y0 = sp_repr_get_double_attribute (obj_repr, "inkscape:tile-y0", 0); } else { - NR::Maybe r = SP_ITEM(obj)->getBounds(sp_item_i2doc_affine(SP_ITEM(obj))); + NR::Maybe r = SP_ITEM(obj)->getBounds(sp_item_i2doc_affine(SP_ITEM(obj)), + SPItem::GEOMETRIC_BBOX); + /* impl: Use of GEOMETRIC_BBOX is so that the stroke of rectangles will be shared + * (overlapped) rather than effectively doubled in width. + * + * (If you wish to change this, then please consider discussing at bug #1722238.) */ + if (r) { w = r->dimensions()[NR::X]; h = r->dimensions()[NR::Y];