From 5fd8f79ad3e38df74d9a6cb573617542c101df1a Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 17 Mar 2006 15:58:39 +0200 Subject: [PATCH] Properly clip bounds when only one point is defining an outline. --- ChangeLog | 6 ++++++ src/xkb/XKBGeom.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5d46b0dd..d2cb8452 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-17 Daniel Stone + + * src/xkb/XKBGeom.c: + Properly clip bounds when outline is defined by a single point. + (Octavio Alvarez Piza) + 2006-02-14 Jamey Sharp * configure.ac: diff --git a/src/xkb/XKBGeom.c b/src/xkb/XKBGeom.c index 06117548..02b03bab 100644 --- a/src/xkb/XKBGeom.c +++ b/src/xkb/XKBGeom.c @@ -75,6 +75,9 @@ XkbPointPtr pt; for (pt=outline->points,p=0;pnum_points;p++,pt++) { _XkbCheckBounds(&shape->bounds,pt->x,pt->y); } + if (outline->num_points<2) { + _XkbCheckBounds(&shape->bounds,0,0); + } } return True; }