Don't draw spelling underlines when printing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-03-14 09:05:29 +00:00
parent e3682ec0be
commit 7d4aa82c88
2 changed files with 36 additions and 28 deletions

View file

@ -1,3 +1,8 @@
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSLayoutManager.m: Don't draw spelling underlines
when printing
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSTextView.m: Attempt to add pagination support

View file

@ -1732,6 +1732,8 @@ for (i = 0; i < gbuf_len; i++) printf(" %3i : %04x\n", i, gbuf[i]); */
// Draw spelling state (i.e. red underline for misspelled words)
if ([NSGraphicsContext currentContextDrawingToScreen])
{
for (i=characterRange.location; i<NSMaxRange(characterRange); )
{
NSRange underlinedCharacterRange;
@ -1766,6 +1768,7 @@ for (i = 0; i < gbuf_len; i++) printf(" %3i : %04x\n", i, gbuf[i]); */
}
}
}
}
-(void) underlineGylphRange: (NSRange)range
underlineType: (NSInteger)type