From f18012d07bb95dea0708fd7b8d882c7fbe4c8868 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Mon, 5 Mar 2018 10:36:22 +0100 Subject: [PATCH] Fixed: removed erroneous call to sizeValue (#2589) --- AppKit/CPTextView/_CPRTFProducer.j | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AppKit/CPTextView/_CPRTFProducer.j b/AppKit/CPTextView/_CPRTFProducer.j index ef540ef3d..71b1a32c1 100644 --- a/AppKit/CPTextView/_CPRTFProducer.j +++ b/AppKit/CPTextView/_CPRTFProducer.j @@ -1,5 +1,5 @@ /* - RTFProducer.j + _CPRTFProducer.j Serialize CPAttributedString to a RTF String @@ -189,11 +189,9 @@ function _points2twips(a) { return (a) * 20.0; } if (val) { - var size = [val sizeValue]; - detail = [CPString stringWithFormat:@"\\paperw%d \\paperh%d", - _points2twips(size.width), - _points2twips(size.height)]; + _points2twips(val.width), + _points2twips(val.height)]; result += detail; } @@ -612,4 +610,4 @@ function _points2twips(a) { return (a) * 20.0; } output += trailerString; return output; } -@end \ No newline at end of file +@end