Re: Bug in 5.4.rc2

Dima Kogan <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
The simplest patch is this:

diff --git a/src/plot2d.c b/src/plot2d.c
index c81fc2344..a8e598359 100644
--- a/src/plot2d.c
+++ b/src/plot2d.c
@@ -1097,7 +1097,7 @@ get_data(struct curve_points *current_plot)
 	    coordval major_axis = (j >= 3) ? fabs(v[2]) : 0.0;
 	    coordval minor_axis = (j >= 4) ? fabs(v[3]) : (j >= 3) ? fabs(v[2]) : 0.0;
 	    coordval orientation = (j >= 5) ? v[4] : 0.0;
-	    coordval flag = (major_axis > 0 && minor_axis > 0) ? 0.0 : DEFAULT_RADIUS;
+	    coordval flag = (j >= 3) ? 0.0 : DEFAULT_RADIUS;

 	    if (j == 2)	/* FIXME: why not also for j == 3 or 4? */
 		orientation = default_ellipse.o.ellipse.orientation;

I.e. we use the default ellipse style only if no axis sizes are given at
all. If anything is given, we use it. Thoughts?


_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.