From: cilix42 Date: Tue, 10 Jul 2007 12:40:33 +0000 (+0000) Subject: small cleanups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b4ae179dca0cac4e3141df5f5436e49d1398f51;p=inkscape.git small cleanups --- diff --git a/src/box3d-face.cpp b/src/box3d-face.cpp index 5eefcb812..f45f4a6ed 100644 --- a/src/box3d-face.cpp +++ b/src/box3d-face.cpp @@ -30,7 +30,7 @@ Box3DFace::~Box3DFace() { for (int i = 0; i < 4; ++i) { if (this->corners[i]) { - delete this->corners[i]; + //delete this->corners[i]; this->corners[i] = NULL; } } diff --git a/src/box3d.cpp b/src/box3d.cpp index aefa620cd..4ce5d85b9 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -21,7 +21,7 @@ static void sp_3dbox_class_init(SP3DBoxClass *klass); static void sp_3dbox_init(SP3DBox *box3d); static void sp_3dbox_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr); -static void sp_shape_release (SPObject *object); +//static void sp_3dbox_release (SPObject *object); static void sp_3dbox_set(SPObject *object, unsigned int key, const gchar *value); static void sp_3dbox_update(SPObject *object, SPCtx *ctx, guint flags); static Inkscape::XML::Node *sp_3dbox_write(SPObject *object, Inkscape::XML::Node *repr, guint flags); @@ -69,6 +69,7 @@ sp_3dbox_class_init(SP3DBoxClass *klass) sp_object_class->set = sp_3dbox_set; sp_object_class->write = sp_3dbox_write; sp_object_class->update = sp_3dbox_update; + //sp_object_class->release = sp_3dbox_release; //item_class->description = sp_3dbox_description; } @@ -94,6 +95,7 @@ sp_3dbox_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr //sp_object_read_attr(object, "width"); } +/* static void sp_3dbox_release (SPObject *object) { @@ -108,7 +110,7 @@ sp_3dbox_release (SPObject *object) ((SPObjectClass *) parent_class)->release (object); } } - +*/ static void sp_3dbox_set(SPObject *object, unsigned int key, const gchar *value) { diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index cd2506bef..95e893a34 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -2128,6 +2128,9 @@ static void sp_3dbox_toggle_vp_changed( GtkToggleAction *act, gpointer data ) case Box3D::Z: pstring = g_string_new("togglevpz"); break; + default: + g_warning ("Only single axis directions may be used to toggle VPs!\n"); + break; } if (SP3DBoxContext::current_perspective) {