Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!apctrc!zjmw0a From: zjmw0a@apctrc.trc.amoco.com (Joe M. Wade) Newsgroups: comp.windows.x Subject: Problem with XDrawLines Keywords: Xlib XDrawLines Message-ID: <918@apctrc.UUCP> Date: 13 Jun 89 22:12:35 GMT Sender: news@apctrc.UUCP Reply-To: zjmw0a@apctrc.trc.amoco.com (Joe M. Wade) Distribution: usa Organization: Amoco Production Company, Tulsa Research Center Lines: 21 I have uncovered what appears to be a bug in XDrawLines. Hopefully this has not been discussed before. If I pass XDrawLines a set of points where there is a duplicate point, the line is never drawn. An example set of points I used is: xypoint[0].x = 150; xypoint[0].y = 150; xypoint[1].x = 150; xypoint[1].y = 150; xypoint[2].x = 350; xypoint[2].y = 150; xypoint[3].x = 350; xypoint[3].y = 350; xypoint[4].x = 150; xypoint[4].y = 350; xypoint[5].x = 150; xypoint[5].y = 150; A call of XDrawLines(display,window,gc,xypoint,6,CoordModeOrigin) results in no line being drawn, whereas XDrawLines(display,window,gc,&xypoint[1],5, CoordModeOrigin) will get it. Is there something I can specify in the gc to get around this? Is this a known bug? Pertinent information is ( Sun 3/60, OS4.0, X11R3) Thanks. **************************************************************** * Joe M. Wade * * Amoco Research Center * * Tulsa, OK *