mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 04:41:10 +00:00
Corrected drawing code for text attachments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10092 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6bd3004637
commit
2aa1edabf5
1 changed files with 7 additions and 1 deletions
|
@ -154,7 +154,9 @@ drawSpecialRun(GSTextRun *run, NSPoint origin, GSDrawInfo *draw)
|
|||
// Currently this is only used for attachments
|
||||
id <NSTextAttachmentCell> cell = run->cell;
|
||||
unsigned charIndex = run->charIndex;
|
||||
NSRect cellFrame = NSMakeRect(origin.x, origin.y,
|
||||
NSRect cellFrame = NSMakeRect(origin.x, (draw->flip ?
|
||||
origin.y - run->glyphs[0].adv.height :
|
||||
origin.y),
|
||||
run->glyphs[0].adv.width,
|
||||
run->glyphs[0].adv.height);
|
||||
NSView *controlView = [draw->ctxt focusView];
|
||||
|
@ -280,6 +282,10 @@ setupSpecialRun(GSTextRun *run, unsigned length, unichar *chars, unsigned pos,
|
|||
|
||||
run->baseline = [run->cell cellBaselineOffset].y;
|
||||
run->height = run->glyphs[0].adv.height;
|
||||
// Unset the normale fields
|
||||
run->font = nil;
|
||||
run->bg = nil;
|
||||
run->fg = nil;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue