Fixed bug in deleting characters in a textfield

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12865 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-28 01:25:49 +00:00
parent 5dc55097ef
commit 9bd438fbd4

View file

@ -3001,6 +3001,16 @@ afterString in order over charRange. */
inTextContainer: _textContainer];
if (_tf.draws_background)
{
/* First paint the background with the color. This is necessary
* to remove markings of old glyphs. These would not be removed
* by the following call to the layout manager because that only
* paints the background of new glyphs. Depending on the
* situation, there might be no new glyphs where the old glyphs
* were! */
[_background_color set];
NSRectFill (rect);
/* Then draw the special background of the new glyphs. */
[_layoutManager drawBackgroundForGlyphRange: drawnRange
atPoint: _textContainerOrigin];
}