mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 06:48:05 +02:00
Properly clip bounds when only one point is defining an outline.
This commit is contained in:
parent
1e1572eb7f
commit
5fd8f79ad3
2 changed files with 9 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue