mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 12:31:00 +00:00
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:
parent
884ca03135
commit
aaafebaf3a
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue