From 2b42b0a4b01b9bb69bc36783220c75407d13d940 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Mon, 6 Aug 2007 08:17:03 +0000 Subject: [PATCH] Fix wrong states of VPs when writing to SVG --- src/box3d.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2