summaryrefslogtreecommitdiffstats
path: root/src/perspective-line.cpp
diff options
context:
space:
mode:
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);