home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume16 / jgraph / patch2 < prev    next >
Encoding:
Internet Message Format  |  1991-02-06  |  2.9 KB

  1. From: jsp@princeton.edu (Jim Plank)
  2. Newsgroups: comp.sources.misc
  3. Subject: v16i091:  Jgraph - A filter for plotting postscript graphs, Patch2
  4. Message-ID: <1991Feb3.210903.29698@sparky.IMD.Sterling.COM>
  5. Date: 3 Feb 91 21:09:03 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: 813595ad a5a3f3f4 0f8fcc06 2868a029
  8.  
  9. Submitted-by: jsp@princeton.edu (Jim Plank)
  10. Posting-number: Volume 16, Issue 91
  11. Archive-name: jgraph/patch2
  12. Patch-To: jgraph: Volume 16, Issue 20
  13.  
  14. This patch fixes a bug where marksize, linewidth, midspace, etc., commands
  15. were being miscalculated when axis minima were not equal to zero.  Thanks
  16. to Gordon Weekly and Heather Booth for helping me spot the bug.
  17.  
  18. Jim
  19.  
  20. # To unbundle, "sed '1,/^# To unbundle/d' < thisfile | sh"
  21. # Thu Jan 31 16:28:49 EST 1991
  22. echo patch.2 1>&2
  23. sed 's/^-//' >'patch.2' <<'End of patch.2'
  24. -*** draw.c    Thu Jan 31 16:16:30 1991
  25. ---- ../old/draw.c    Thu Jan 31 16:20:16 1991
  26. -***************
  27. -*** 1,8 ****
  28. -  /* $Log:    draw.c,v $
  29. --  * Revision 1.9  91/01/31  16:14:56  jsp
  30. --  * For patch #2 -- Fixed a bug with disttop which caused it to
  31. --  * work incorrectly with axis minima which != 0.
  32. --  * 
  33. -   * Revision 1.8  91/01/16  10:57:25  jsp
  34. -   * After Patch #1 -- Ifdefs have been included for VMS and LCC, and
  35. -   * minor bugs have been fixed
  36. ---- 1,4 ----
  37. -***************
  38. -*** 64,70 ****
  39. -    if (axis->is_lg) {
  40. -      return FCPI * val;
  41. -    } else {
  42. -!     return (val) * axis->factor;
  43. -    }
  44. -  }
  45. -  
  46. ---- 60,66 ----
  47. -    if (axis->is_lg) {
  48. -      return FCPI * val;
  49. -    } else {
  50. -!     return (val - axis->min) * axis->factor;
  51. -    }
  52. -  }
  53. -  
  54. -*** show.c    Thu Jan 31 16:16:32 1991
  55. ---- ../old/show.c    Thu Jan 31 16:20:22 1991
  56. -***************
  57. -*** 1,8 ****
  58. -  /* $Log:    show.c,v $
  59. --  * Revision 1.8  91/01/31  16:15:37  jsp
  60. --  * For patch #2 -- Fixed a bug with disttop which caused it to
  61. --  * work incorrectly with axis minima which != 0.
  62. --  * 
  63. -   * Revision 1.7  91/01/16  10:58:37  jsp
  64. -   * After Patch #1 -- Ifdefs have been included for VMS and LCC, and
  65. -   * minor bugs have been fixed
  66. ---- 1,4 ----
  67. -***************
  68. -*** 67,73 ****
  69. -    if (a->is_lg) {
  70. -      return p  / FCPI;
  71. -    } else {
  72. -!     return (p / a->factor);
  73. -    }
  74. -  }
  75. -  
  76. ---- 63,69 ----
  77. -    if (a->is_lg) {
  78. -      return p  / FCPI;
  79. -    } else {
  80. -!     return (p / a->factor) + a->min;
  81. -    }
  82. -  }
  83. -  
  84. End of patch.2
  85. echo PATCH.2.README 1>&2
  86. sed 's/^-//' >'PATCH.2.README' <<'End of PATCH.2.README'
  87. -This patch fixes a bug where marksize, linewidth, midspace, etc., commands
  88. -were being miscalculated when axis minima were not equal to zero.  Thanks
  89. -to Gordon Weekly and Heather Booth for helping me spot the bug.
  90. -
  91. -Apply the patch by:
  92. -
  93. -patch < patch.2
  94. End of PATCH.2.README
  95.  
  96. exit 0 # Just in case...
  97. -- 
  98. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  99. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  100. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  101. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  102.