Branch: Tag:

2002-03-09

2002-03-09 18:28:02 by Martin Nilsson <mani@lysator.liu.se>

throw -> error

Rev: lib/modules/Cache.pmod/Storage.pmod/Base.pike:1.7
Rev: lib/modules/Cache.pmod/cache.pike:1.9
Rev: lib/modules/Calendar_I.pmod/Gregorian.pmod:1.27
Rev: lib/modules/Crypto/_rsa.pike:1.6
Rev: lib/modules/Crypto/dsa.pike:1.11
Rev: lib/modules/Crypto/randomness.pmod:1.21
Rev: lib/modules/Crypto/rsa.pike:1.31
Rev: lib/modules/Filesystem.pmod/Tar.pmod:1.13
Rev: lib/modules/Getopt.pmod:1.19
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_bars.pike:1.7
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.9
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1.8
Rev: lib/modules/Languages.pmod/PLIS.pmod:1.14
Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.15
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.62
Rev: lib/modules/Protocols.pmod/NNTP.pmod:1.10
Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.20

1:   // Graph sub-module for drawing pie-charts. - // $Id: create_pie.pike,v 1.7 2001/11/19 00:04:38 nilsson Exp $ + // $Id: create_pie.pike,v 1.8 2002/03/09 18:17:10 nilsson Exp $   //   // These functions were written by Henrik "Hedda" Wallin (hedda@roxen.com)   // Create_pie can draw pie charts in different forms.
120:       }    else -  throw(({"Missing font or similar error!\n", backtrace() })); +  error("Missing font or similar error!\n");       int nameheight=write_name(diagram_data);   
149:    float w=diagram_data["linewidth"];       if (xr<2) -  throw(({"Image to small for this pie-diagram.\n" -  "Try smaller font or bigger image!\n", backtrace() })); +  error("Image to small for this pie-diagram.\n" +  "Try smaller font or bigger image!\n");       //initiate the 0.25*% for different numbers:    //Ex: If numbers is ({3,3}) pnumbers will be ({200, 200})