From 01616ad9d6084dc6ef4fc14622b018ee582431d2 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sat, 14 Jul 2007 14:51:56 +0000 Subject: Write distinguished corners of 3D boxes to the svg representation from which the box can be recomputed. This is used to fix several bugs related to the editing of boxes resulting from cloning, undo operations or newly opened documents (we had stray pointers to SPPaths before that made Inkscape crash). (bzr r3239) --- src/attributes.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/attributes.cpp') diff --git a/src/attributes.cpp b/src/attributes.cpp index a8cd2e83d..968e38633 100644 --- a/src/attributes.cpp +++ b/src/attributes.cpp @@ -112,6 +112,11 @@ static SPStyleProp const props[] = { /* SPRect */ {SP_ATTR_RX, "rx"}, {SP_ATTR_RY, "ry"}, + /* SP3DBox */ + {SP_ATTR_INKSCAPE_3DBOX, "inkscape:3dbox"}, + {SP_ATTR_INKSCAPE_3DBOX_CORNER_A, "inkscape:box3dcornerA"}, // "upper left front" corner + {SP_ATTR_INKSCAPE_3DBOX_CORNER_B, "inkscape:box3dcornerB"}, // "lower right front" corner + {SP_ATTR_INKSCAPE_3DBOX_CORNER_C, "inkscape:box3dcornerC"}, // "lower right rear" corner /* SPEllipse */ {SP_ATTR_R, "r"}, {SP_ATTR_CX, "cx"}, -- cgit v1.2.3