diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-13 18:17:32 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-13 18:17:32 +0000 |
| commit | 30493d6d028485e65dd0fb61ea9978c7b128e817 (patch) | |
| tree | 04e31f55683821e8a109bdf9a5eb9f9f39ffbfe0 /src/box3d.cpp | |
| parent | * [INTL: pl] Updated Polish translation by Tomek ArgasiĆski (diff) | |
| download | inkscape-30493d6d028485e65dd0fb61ea9978c7b128e817.tar.gz inkscape-30493d6d028485e65dd0fb61ea9978c7b128e817.zip | |
Use visual/geometric bbox (as specified in Selector tool preferences) when converting to guidelines. Also, provide options to convert rectangles and 3D boxes using their bbox, too (i.e., disregarding their true shapes).
(bzr r4477)
Diffstat (limited to 'src/box3d.cpp')
| -rw-r--r-- | src/box3d.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp index 631d5cfc1..3c40a4800 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -34,6 +34,7 @@ #include "2geom/geom.h" #include "sp-guide.h" #include "sp-namedview.h" +#include "prefs-utils.h" #include "desktop.h" #include "macros.h" @@ -1496,6 +1497,11 @@ box3d_push_back_corner_pair(SPBox3D *box, std::list<std::pair<Geom::Point, Geom: void box3d_convert_to_guides(SPBox3D *box, bool write_undo) { + if (prefs_get_int_attribute("tools.shapes.3dbox", "convertguides", 1) == 0) { + sp_item_convert_to_guides(SP_ITEM(box)); + return; + } + SPDocument *doc = SP_OBJECT_DOCUMENT(box); //SPDesktop *desktop = inkscape_active_desktop(); //Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc); |
