Properly clip bounds when only one point is defining an outline.

This commit is contained in:
Daniel Stone 2006-03-17 15:58:39 +02:00 committed by Jamey Sharp
parent 1e1572eb7f
commit 5fd8f79ad3
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-03-17 Daniel Stone <daniel@freedesktop.org>
* src/xkb/XKBGeom.c:
Properly clip bounds when outline is defined by a single point.
(Octavio Alvarez Piza)
2006-02-14 Jamey Sharp <jamey@minilop.net>
* configure.ac:

View file

@ -75,6 +75,9 @@ XkbPointPtr pt;
for (pt=outline->points,p=0;p<outline->num_points;p++,pt++) {
_XkbCheckBounds(&shape->bounds,pt->x,pt->y);
}
if (outline->num_points<2) {
_XkbCheckBounds(&shape->bounds,0,0);
}
}
return True;
}