summaryrefslogtreecommitdiffstats
path: root/src/dialogs
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2007-05-23 12:31:31 +0000
committerpjrm <pjrm@users.sourceforge.net>2007-05-23 12:31:31 +0000
commit306df9dce0b94a11f46348aedaceae481cf35a0e (patch)
tree0686d0a9f04e5072a777b24ab937a1dcdf4b27fb /src/dialogs
parentRefactoring work for filter effects renderer initialization (diff)
downloadinkscape-306df9dce0b94a11f46348aedaceae481cf35a0e.tar.gz
inkscape-306df9dce0b94a11f46348aedaceae481cf35a0e.zip
Clone Tiler: Change bbox calculation from the default APPROXIMATE_BBOX to GEOMETRIC_BBOX, as requested in bug #1722238.
(bzr r3036)
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/clonetiler.cpp8
1 files changed, 7 insertions, 1 deletions
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<NR::Rect> r = SP_ITEM(obj)->getBounds(sp_item_i2doc_affine(SP_ITEM(obj)));
+ NR::Maybe<NR::Rect> 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];