From: johanengelen Date: Sat, 23 Sep 2006 19:33:30 +0000 (+0000) Subject: axonometric grid: angles cannot be larger than 89 degrees. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f076d6c508a8d275bee5b1b2d1d63ce8408bf8e;p=inkscape.git axonometric grid: angles cannot be larger than 89 degrees. --- diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index 909ebdcda..c4fb41cec 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -149,6 +149,7 @@ sp_caxonomgrid_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) case ARG_ANGLEX: grid->angle_deg[X] = GTK_VALUE_DOUBLE (* arg); if (grid->angle_deg[X] < 0.0) grid->angle_deg[X] = 0.0; + if (grid->angle_deg[X] > 89.0) grid->angle_deg[X] = 89.0; grid->angle_rad[X] = deg_to_rad(grid->angle_deg[X]); grid->tan_angle[X] = tan(grid->angle_rad[X]); sp_canvas_item_request_update (item); @@ -161,6 +162,7 @@ sp_caxonomgrid_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) case ARG_ANGLEZ: grid->angle_deg[Z] = GTK_VALUE_DOUBLE (* arg); if (grid->angle_deg[Z] < 0.0) grid->angle_deg[Z] = 0.0; + if (grid->angle_deg[X] > 89.0) grid->angle_deg[X] = 89.0; grid->angle_rad[Z] = deg_to_rad(grid->angle_deg[Z]); grid->tan_angle[Z] = tan(grid->angle_rad[Z]); sp_canvas_item_request_update (item);