diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-05 02:45:08 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-05 02:45:08 +0000 |
| commit | d9e47231bf6192aa4b3b9453dc159dbe16c35a41 (patch) | |
| tree | 9c34d8e794802ca4c9817f24db0fed456fee8059 /src/box3d-context.cpp | |
| parent | * [INTL: sk] Updated Slovak translation: minor changes (diff) | |
| download | inkscape-d9e47231bf6192aa4b3b9453dc159dbe16c35a41.tar.gz inkscape-d9e47231bf6192aa4b3b9453dc159dbe16c35a41.zip | |
Only set style of box sides during creation (not upon every repr write).
(bzr r4388)
Diffstat (limited to 'src/box3d-context.cpp')
| -rw-r--r-- | src/box3d-context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |
