Fix error updating dynamic services

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29768 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-02-26 05:20:59 +00:00
parent d3c4c5b0c7
commit b26c2b4df6
3 changed files with 17 additions and 2 deletions

View file

@ -845,7 +845,7 @@ has the same y origin and height as the line frag rect it is in.
cindex == [_textStorage length], in which case we set it to 1. */
if (fraction_through == 1.0)
{
r = lf->used_rect;
r = (lf == 0) ? NSZeroRect : lf->used_rect;
r.origin.x += r.size.width;
r.size.width = 1;
return r;