Branch: Tag:

2000-03-18

2000-03-18 19:11:01 by Per Hedbor <ph@opera.com>

Fixed a small bug

Rev: server/modules/graphics/graphic_text.pike:1.217

1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.216 2000/03/18 19:04:11 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.217 2000/03/18 19:11:01 per Exp $";      #include <module.h>   inherit "module";
701:    "xspacing",    "ypad",    "ysize", -  "yspacing" +  "yspacing", +  "border",       /* generic argcache arguments */    "crop",
726:    m_delete(arg,"width");    m_delete(arg,"height");    -  foreach(filearg, string tmp) -  if(arg[tmp]) { +  foreach(filearg + textarg, string tmp) +  if(arg[tmp]) +  {    p[tmp]=fix_relative(arg[tmp],id);    m_delete(arg,tmp);    }    -  if(arg->border && search(arg->border,",")) { -  p->border=arg->border; -  m_delete(arg,"border"); -  } + // if(arg->border && (search(arg->border,",")!=-1)) + // { + // p->border=arg->border; + // m_delete(arg,"border"); + // }       array i = indices( arg );    foreach(textarg, string tmp)    foreach( glob( tmp, i ), string a )    { -  +  werror("found "+a+" "+arg[a]+"\n");    p[a]=arg[a]; // ,id -  +  i-=({a});    m_delete(arg,a);    }