summaryrefslogtreecommitdiffstats
path: root/src/box3d.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-06 08:17:03 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-06 08:17:03 +0000
commit8b10c9afad323438a9505e5d548f71bcdf396edc (patch)
tree0b079267b9c225030daec001fd1424410994a32b /src/box3d.cpp
parentDraw perspective lines; provide shortcuts to toggle their visibility and the ... (diff)
downloadinkscape-8b10c9afad323438a9505e5d548f71bcdf396edc.tar.gz
inkscape-8b10c9afad323438a9505e5d548f71bcdf396edc.zip
Fix wrong states of VPs when writing to SVG
(bzr r3394)
Diffstat (limited to 'src/box3d.cpp')
-rw-r--r--src/box3d.cpp6
1 files 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);