mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 05:20:59 +00:00
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:
parent
e3682ec0be
commit
7d4aa82c88
2 changed files with 36 additions and 28 deletions
|
@ -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>
|
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSTextView.m: Attempt to add pagination support
|
* Source/NSTextView.m: Attempt to add pagination support
|
||||||
|
|
|
@ -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)
|
// Draw spelling state (i.e. red underline for misspelled words)
|
||||||
|
|
||||||
|
if ([NSGraphicsContext currentContextDrawingToScreen])
|
||||||
|
{
|
||||||
for (i=characterRange.location; i<NSMaxRange(characterRange); )
|
for (i=characterRange.location; i<NSMaxRange(characterRange); )
|
||||||
{
|
{
|
||||||
NSRange underlinedCharacterRange;
|
NSRange underlinedCharacterRange;
|
||||||
|
@ -1765,6 +1767,7 @@ for (i = 0; i < gbuf_len; i++) printf(" %3i : %04x\n", i, gbuf[i]); */
|
||||||
i += underlinedCharacterRange.length;
|
i += underlinedCharacterRange.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void) underlineGylphRange: (NSRange)range
|
-(void) underlineGylphRange: (NSRange)range
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue