From 7fb11ff4ed370b79f488673bddbd5505e41110a6 Mon Sep 17 00:00:00 2001 From: pjrm Date: Wed, 23 May 2007 12:31:31 +0000 Subject: [PATCH] Clone Tiler: Change bbox calculation from the default APPROXIMATE_BBOX to GEOMETRIC_BBOX, as requested in bug #1722238. --- src/dialogs/clonetiler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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]; -- 2.30.2