diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-24 18:10:47 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-24 18:10:47 +0000 |
| commit | b5764f7ac6a1631db85a201236a2fe59db7d6bae (patch) | |
| tree | 1d20555e63f99c8ee33154e2d3ae305e6b88aca5 /src/dialogs/clonetiler.cpp | |
| parent | updates, optimizations and fixes (diff) | |
| download | inkscape-b5764f7ac6a1631db85a201236a2fe59db7d6bae.tar.gz inkscape-b5764f7ac6a1631db85a201236a2fe59db7d6bae.zip | |
make clonetiler obey the bbox prefs
(bzr r6412)
Diffstat (limited to 'src/dialogs/clonetiler.cpp')
| -rw-r--r-- | src/dialogs/clonetiler.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index 0b433fe3b..65c8fba02 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -1239,13 +1239,11 @@ 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 { + int prefs_bbox = prefs_get_int_attribute("tools", "bounding_box", 0); + SPItem::BBoxType bbox_type = (prefs_bbox ==0)? + SPItem::APPROXIMATE_BBOX : SPItem::GEOMETRIC_BBOX; NR::Maybe<NR::Rect> r = SP_ITEM(obj)->getBounds(from_2geom(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.) */ - + bbox_type); if (r) { w = r->dimensions()[NR::X]; h = r->dimensions()[NR::Y]; |
