mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
fixed: color spill issue
This commit is contained in:
@@ -797,10 +797,15 @@ var kRgsymRtf = {
|
||||
[self _flushCurrentRun];
|
||||
var fontIndex = parseInt(param) - 1;
|
||||
|
||||
if (_currentRun && fontIndex >= 0)
|
||||
_currentRun.fgColour = _colorArray[fontIndex];
|
||||
if (_currentRun)
|
||||
{
|
||||
if (fontIndex >= 0 && fontIndex < _colorArray.length)
|
||||
_currentRun.fgColour = _colorArray[fontIndex];
|
||||
else
|
||||
_currentRun.fgColour = nil;
|
||||
}
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
case "cb": // change background color
|
||||
case "highlight":
|
||||
|
||||
Reference in New Issue
Block a user