mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-30 22: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
67a58cac75
commit
cd68e2796a
1 changed files with 6 additions and 1 deletions
|
@ -580,7 +580,6 @@ void GSRTFmangleText (void *ctxt, const char *text)
|
||||||
{
|
{
|
||||||
[RESULT replaceCharactersInRange: insertionRange
|
[RESULT replaceCharactersInRange: insertionRange
|
||||||
withString: [NSString stringWithCString:text]];
|
withString: [NSString stringWithCString:text]];
|
||||||
|
|
||||||
if (CHANGED)
|
if (CHANGED)
|
||||||
{
|
{
|
||||||
attributes = [NSMutableDictionary
|
attributes = [NSMutableDictionary
|
||||||
|
@ -861,6 +860,7 @@ void GSRTFspaceAbove (void *ctxt, int space)
|
||||||
if (fspace >= 0.0)
|
if (fspace >= 0.0)
|
||||||
{
|
{
|
||||||
[para setParagraphSpacing: fspace];
|
[para setParagraphSpacing: fspace];
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -873,14 +873,17 @@ void GSRTFlineSpace (void *ctxt, int space)
|
||||||
{
|
{
|
||||||
[para setMinimumLineHeight: 0.0];
|
[para setMinimumLineHeight: 0.0];
|
||||||
[para setMaximumLineHeight: 0.0];
|
[para setMaximumLineHeight: 0.0];
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
else if (fspace < 0.0)
|
else if (fspace < 0.0)
|
||||||
{
|
{
|
||||||
[para setMaximumLineHeight: -fspace];
|
[para setMaximumLineHeight: -fspace];
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[para setMinimumLineHeight: fspace];
|
[para setMinimumLineHeight: fspace];
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -923,6 +926,7 @@ void GSRTFcolorbg (void *ctxt, int color)
|
||||||
{
|
{
|
||||||
ASSIGN (BGCOLOUR, [COLOURS objectAtIndex: color]);
|
ASSIGN (BGCOLOUR, [COLOURS objectAtIndex: color]);
|
||||||
}
|
}
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSRTFcolorfg (void *ctxt, int color)
|
void GSRTFcolorfg (void *ctxt, int color)
|
||||||
|
@ -935,6 +939,7 @@ void GSRTFcolorfg (void *ctxt, int color)
|
||||||
{
|
{
|
||||||
ASSIGN (FGCOLOUR, [COLOURS objectAtIndex: color]);
|
ASSIGN (FGCOLOUR, [COLOURS objectAtIndex: color]);
|
||||||
}
|
}
|
||||||
|
CHANGED = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSRTFsubscript (void *ctxt, int script)
|
void GSRTFsubscript (void *ctxt, int script)
|
||||||
|
|
Loading…
Reference in a new issue