summaryrefslogtreecommitdiffstats
path: root/src/perspective-line.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-07-04 10:26:36 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-07-04 10:26:36 +0000
commit667a24e083df3651723b6d78ed8058366a772e21 (patch)
treef5562860dfbbd33b0f37ff6519312a63d117811d /src/perspective-line.cpp
parentAdded missing #ifdefs for HAVE_POPPLER_GLIB (diff)
downloadinkscape-667a24e083df3651723b6d78ed8058366a772e21.tar.gz
inkscape-667a24e083df3651723b6d78ed8058366a772e21.zip
New/updated 3D box auxiliary/convenience functions (e.g., allow (un)constrained movement of corners, too; determine midpoints of edges)
(bzr r3183)
Diffstat (limited to 'src/perspective-line.cpp')
-rw-r--r--src/perspective-line.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perspective-line.cpp b/src/perspective-line.cpp
index 158ddd47b..e5596cc1b 100644
--- a/src/perspective-line.cpp
+++ b/src/perspective-line.cpp
@@ -19,6 +19,7 @@ PerspectiveLine::PerspectiveLine (NR::Point const &pt, Box3D::Axis const axis, P
Line (pt, *(perspective->get_vanishing_point(axis)), true)
{
g_assert (perspective != NULL);
+ g_assert (Box3D::is_single_axis_direction (axis));
if (perspective->get_vanishing_point(axis)->state == VP_INFINITE) {
this->set_direction(perspective->get_vanishing_point(axis)->v_dir);