From: cilix42 Date: Mon, 6 Aug 2007 08:17:03 +0000 (+0000) Subject: Fix wrong states of VPs when writing to SVG X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b42b0a4b01b9bb69bc36783220c75407d13d940;p=inkscape.git Fix wrong states of VPs when writing to SVG --- diff --git a/src/box3d.cpp b/src/box3d.cpp index e4bda5d9c..e445ba3d0 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -685,13 +685,13 @@ sp_3dbox_update_perspective (Box3D::Perspective3D *persp, const gchar *value) persp->set_vanishing_point (Box3D::X, g_ascii_strtod (vps[0], NULL), g_ascii_strtod (vps[1], NULL), g_ascii_strtod (vps[2], NULL), g_ascii_strtod (vps[3], NULL), - Box3D::VP_FINITE); + strcmp (vps[4], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE); persp->set_vanishing_point (Box3D::Y, g_ascii_strtod (vps[5], NULL), g_ascii_strtod (vps[6], NULL), g_ascii_strtod (vps[7], NULL), g_ascii_strtod (vps[8], NULL), - Box3D::VP_FINITE); + strcmp (vps[9], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE); persp->set_vanishing_point (Box3D::Z, g_ascii_strtod (vps[10], NULL), g_ascii_strtod (vps[11], NULL), g_ascii_strtod (vps[12], NULL), g_ascii_strtod (vps[13], NULL), - Box3D::VP_FINITE); + strcmp (vps[14], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE); // update the other boxes linked to the same perspective persp->reshape_boxes (Box3D::XYZ);