|
From: Tatsuro M. <tma...@ya...> - 2009-09-06 08:31:04
|
Hello Ethan Merritt I have tested your patch. The results are fine. Please see http://www.geocities.co.jp/tmgpltwin/Files/Files.html 0021 2213362.pdf,22,378 bytes, 2009-09-06, Results for the patch for the bug ( 2213362 win.trm: Extra line from end of graph to key sample) by Ethan Merritt ( http://www.nabble.com/Possible-fix-for-Windows-bug--2213362-td25314642.html) Regards Tatsuro --- Ethan Merritt wrote: > The win terminal Bug > > 2213362 win.trm: Extra line from end of graph to key sample > > has been with us since 4.2.4. I really want to get this fixed before > putting out a 4.4-rc1. > > Could somebody with a Windows build system please test whether the > attachd patch cures it? > > In a nutshell, if a line plot connects exactly 199 points (polymax - 1) > then an extra line is drawn. Simple test case: > > set term win > set key left > set samples 199 > plot x > > thanks in advance for any assistance, > > Ethan > > diff -urp gnuplot/src/win/wgraph.c gnuplot-cvs/src/win/wgraph.c > --- gnuplot/src/win/wgraph.c 2009-08-29 14:42:00.000000000 -0700 > +++ gnuplot-cvs/src/win/wgraph.c 2009-09-05 20:57:28.000000000 -0700 > @@ -917,6 +917,7 @@ drawgraph(LPGW lpgw, HDC hdc, LPRECT rec > polyi++; > if (polyi >= polymax) { > Polyline(hdc, ppt, polyi); > + MoveTo(hdc, xdash, ydash); /* EAM 5 Sept 2009 */ > ppt[0].x = xdash; > ppt[0].y = ydash; > polyi = 1; > -------------------------------------- Thanks 10 years! Yahoo! Shopping and Yahoo! Auctions http://pr.mail.yahoo.co.jp/ec10years/ |