From e02a2538ec72f8d8aaaab5f62b5fb57da9ca1cdc Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 9 Jan 2008 02:40:03 +0000 Subject: Convert 3D boxes to ordinary groups before tweaking, ungrouping or applying 'convert to path' (closes LP #179693 and #176646). (bzr r4439) --- src/tweak-context.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tweak-context.cpp') diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index a66f766cf..85831a648 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -71,6 +71,7 @@ #include "isnan.h" #include "prefs-utils.h" #include "style.h" +#include "box3d.h" #include "tweak-context.h" @@ -835,6 +836,12 @@ sp_tweak_dilate (SPTweakContext *tc, NR::Point event_p, NR::Point p, NR::Point v SPItem *item = (SPItem *) items->data; + if (SP_IS_BOX3D(item)) { + // convert 3D boxes to ordinary groups before tweaking their shapes + item = SP_ITEM(box3d_convert_to_group(SP_BOX3D(item))); + selection->add(item); + } + if (tc->mode == TWEAK_MODE_COLORPAINT || tc->mode == TWEAK_MODE_COLORJITTER) { if (do_fill || do_stroke || do_opacity) { if (sp_tweak_color_recursive (tc->mode, item, item_at_point, -- cgit v1.2.3