From aaafebaf3a12ee47aaee1e894497f81e345bb8c6 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 7 May 2000 22:25:34 +0000 Subject: [PATCH] GSRTFsubscript, GSRTFsuperscript: Change interpretation of super/subscript parameter git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6581 72102866-910b-0410-8b05-ffd578937521 --- Source/Parsers/attributedStringConsumer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Parsers/attributedStringConsumer.m b/Source/Parsers/attributedStringConsumer.m index deed10b0a..1dfc4cd38 100644 --- a/Source/Parsers/attributedStringConsumer.m +++ b/Source/Parsers/attributedStringConsumer.m @@ -355,7 +355,7 @@ void GSRTFcolorfg(void *ctxt, int color) void GSRTFsubscript(void *ctxt, int script) { - script = (int) -halfpoints2points(script); + script = (int) (-halfpoints2points(script) / 3.0); if (script != [[CTXT objectForKey: GSscript] intValue]) { @@ -367,7 +367,7 @@ void GSRTFsubscript(void *ctxt, int script) void GSRTFsuperscript(void *ctxt, int script) { - script = (int) halfpoints2points(script); + script = (int) (halfpoints2points(script) / 3.0); if (script != [[CTXT objectForKey: GSscript] intValue]) {