Changeset 1ee5c79201bda5ae7debf1c06a41c4813cebb496

Show
Ignore:
Timestamp:
10/26/09 00:23:09 (4 weeks ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
git-author:
Karl Ramm <kcr@1ts.org> / 2009-10-26T00:20:35Z-0400
Parents:
1b9d3cc988eca748bb848a9e8e8c38c6b4022dfd
Children:
68c572a4377c03adaeca5bb25ec192e3515dc2df
git-committer:
Geoffrey Thomas <geofft@mit.edu> / 2009-10-26T00:23:09Z-0400
Message:
owl_util_string_to_color returns OWL_COLOR_INVALID when it is sad

Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r6c171f1 r1ee5c79  
    686686          /* set it as the current color */ 
    687687          curcolor=owl_util_string_to_color(buff); 
    688           if (curcolor==-1) curcolor=OWL_COLOR_DEFAULT; 
     688          if (curcolor == OWL_COLOR_INVALID) 
     689              curcolor = OWL_COLOR_DEFAULT; 
    689690          owl_free(buff); 
    690691          txtptr=tmpptr+1;