Revision: 53413
http://brlcad.svn.sourceforge.net/brlcad/?rev=53413&view=rev
Author: n_reed
Date: 2012-11-01 14:01:54 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
plot routines are expected to return < 0 on error
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/eto/eto.c
Modified: brlcad/trunk/src/librt/primitives/eto/eto.c
===================================================================
--- brlcad/trunk/src/librt/primitives/eto/eto.c 2012-11-01 11:30:38 UTC (rev
53412)
+++ brlcad/trunk/src/librt/primitives/eto/eto.c 2012-11-01 14:01:54 UTC (rev
53413)
@@ -887,7 +887,7 @@
eto = (struct rt_eto_internal *)ip->idb_ptr;
if (!eto_is_valid(eto)) {
- return 1;
+ return -1;
}
samples = sqrt(primitive_diagonal_samples(ip, info));
@@ -1016,7 +1016,7 @@
tip = (struct rt_eto_internal *)ip->idb_ptr;
if (!eto_is_valid(tip)) {
- return 1;
+ return -1;
}
a = MAGNITUDE(tip->eto_C);
@@ -1058,7 +1058,7 @@
/* make sure ellipse doesn't overlap itself when revolved */
if (ch > tip->eto_r || dh > tip->eto_r) {
bu_log("eto_plot: revolved ellipse overlaps itself\n");
- return 1;
+ return -1;
}
/* get memory for nells ellipses */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits