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
This commit is contained in:
Fred Kiefer 2000-05-07 22:25:34 +00:00
parent 884ca03135
commit aaafebaf3a

View file

@ -355,7 +355,7 @@ void GSRTFcolorfg(void *ctxt, int color)
void GSRTFsubscript(void *ctxt, int script) void GSRTFsubscript(void *ctxt, int script)
{ {
script = (int) -halfpoints2points(script); script = (int) (-halfpoints2points(script) / 3.0);
if (script != [[CTXT objectForKey: GSscript] intValue]) if (script != [[CTXT objectForKey: GSscript] intValue])
{ {
@ -367,7 +367,7 @@ void GSRTFsubscript(void *ctxt, int script)
void GSRTFsuperscript(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]) if (script != [[CTXT objectForKey: GSscript] intValue])
{ {