From d9e47231bf6192aa4b3b9453dc159dbe16c35a41 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sat, 5 Jan 2008 02:45:08 +0000 Subject: Only set style of box sides during creation (not upon every repr write). (bzr r4388) --- src/box3d-context.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/box3d-context.cpp') diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp index edc45e8d1..83952d5ef 100644 --- a/src/box3d-context.cpp +++ b/src/box3d-context.cpp @@ -634,6 +634,7 @@ static void sp_box3d_drag(Box3DContext &bc, guint /*state*/) Inkscape::GC::release(repr); /**** bc.item->transform = SP_ITEM(desktop->currentRoot())->getRelativeTransform(desktop->currentLayer()); ****/ Inkscape::XML::Node *repr_side; + // TODO: Incorporate this in box3d-side.cpp! for (int i = 0; i < 6; ++i) { repr_side = xml_doc->createElement("svg:path"); repr_side->setAttribute("sodipodi:type", "inkscape:box3dside"); @@ -649,6 +650,9 @@ static void sp_box3d_drag(Box3DContext &bc, guint /*state*/) side->dir2 = Box3D::extract_second_axis_direction(plane); side->front_or_rear = (Box3D::FrontOrRear) (desc & 0x8); + /* Set style */ + box3d_side_apply_style(side); + SP_OBJECT(side)->updateRepr(); // calls box3d_side_write() and updates, e.g., the axes string description } -- cgit v1.2.3