mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
GSRTFcolorfg(), GSRTFcolorbg(), GSRTFlineSpace(),
GSRTFspaceAbove() set the state of the context to changed, so that new attributes get used. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db4c4957a3
commit
0022e44bdd
1 changed files with 6 additions and 1 deletions
|
@ -580,7 +580,6 @@ void GSRTFmangleText (void *ctxt, const char *text)
|
|||
{
|
||||
[RESULT replaceCharactersInRange: insertionRange
|
||||
withString: [NSString stringWithCString:text]];
|
||||
|
||||
if (CHANGED)
|
||||
{
|
||||
attributes = [NSMutableDictionary
|
||||
|
@ -861,6 +860,7 @@ void GSRTFspaceAbove (void *ctxt, int space)
|
|||
if (fspace >= 0.0)
|
||||
{
|
||||
[para setParagraphSpacing: fspace];
|
||||
CHANGED = YES;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -873,14 +873,17 @@ void GSRTFlineSpace (void *ctxt, int space)
|
|||
{
|
||||
[para setMinimumLineHeight: 0.0];
|
||||
[para setMaximumLineHeight: 0.0];
|
||||
CHANGED = YES;
|
||||
}
|
||||
else if (fspace < 0.0)
|
||||
{
|
||||
[para setMaximumLineHeight: -fspace];
|
||||
CHANGED = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
[para setMinimumLineHeight: fspace];
|
||||
CHANGED = YES;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -923,6 +926,7 @@ void GSRTFcolorbg (void *ctxt, int color)
|
|||
{
|
||||
ASSIGN (BGCOLOUR, [COLOURS objectAtIndex: color]);
|
||||
}
|
||||
CHANGED = YES;
|
||||
}
|
||||
|
||||
void GSRTFcolorfg (void *ctxt, int color)
|
||||
|
@ -935,6 +939,7 @@ void GSRTFcolorfg (void *ctxt, int color)
|
|||
{
|
||||
ASSIGN (FGCOLOUR, [COLOURS objectAtIndex: color]);
|
||||
}
|
||||
CHANGED = YES;
|
||||
}
|
||||
|
||||
void GSRTFsubscript (void *ctxt, int script)
|
||||
|
|
Loading…
Reference in a new issue