Don't bother sorting the x & y order of the points in a line before

drawing.

svn path=/trunk/; revision=44199
This commit is contained in:
Martin Mathieson 2012-08-02 01:18:45 +00:00
parent 15862a8fae
commit 1c3bee8ba4
1 changed files with 0 additions and 10 deletions

View File

@ -2307,16 +2307,6 @@ static void draw_element_line (struct graph *g, struct element *e, cairo_t *cr,
xx2 = (int )rint (e->p.line.dim.x2 + g->geom.x - g->wp.x);
yy1 = (int )rint ((g->geom.height-1-e->p.line.dim.y1) + g->geom.y-g->wp.y);
yy2 = (int )rint ((g->geom.height-1-e->p.line.dim.y2) + g->geom.y-g->wp.y);
if (xx1 > xx2) {
int tmp=xx2;
xx2=xx1;
xx1=tmp;
}
if (yy1 > yy2) {
int tmp=yy2;
yy2=yy1;
yy1=tmp;
}
/* If line completely out of the area, we won't show it */
if ((xx1<0 && xx2<0) || (xx1>=g->wp.width && xx2>=g->wp.width) ||