mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:57:38 +00:00
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:
parent
5dc55097ef
commit
9bd438fbd4
1 changed files with 10 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue