mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 15:35:52 +00:00
fixed: _RTFProducer was referencing wrong colortbl entries
This commit is contained in:
1 parent
45c7a110b6
commit
e9aeda2a34
1 file changed
+6
-4
@@ -279,13 +279,15 @@ function _points2twips(a) { return (a) * 20.0; }
|
||||
var cn,
|
||||
num = [colorDict objectForKey:color];
|
||||
|
||||
if (num == nil)
|
||||
if (num === nil)
|
||||
{
|
||||
cn = [colorDict count] + 1;
|
||||
[colorDict setObject:[CPNumber numberWithInt:cn] forKey:color];
|
||||
cn = [colorDict count];
|
||||
[colorDict setObject:[CPNumber numberWithInt:cn + 1] forKey:color];
|
||||
}
|
||||
else
|
||||
cn = [num intValue];
|
||||
|
||||
return [num intValue] + 1;
|
||||
return cn + 1;
|
||||
}
|
||||
|
||||
- (CPString)paragraphStyle:(CPParagraphStyle)paraStyle
|
||||
|
||||
Reference in new issue
Block a user