|
From: Ethan M. <merritt@u.washington.edu> - 2006-06-09 18:10:27
|
On Friday 09 June 2006 01:31 am, Daniel J Sebald wrote:
> The last demo of 'pm3d.dem', the one showing the grid point options,
> doesn't appear to work correctly with the postscript terminal. The
> demo works fine in PDF.
Confirmed.
There is a missing "gsave" in the output, at the location where
there used to be a palette reload sequence. This makes me suspect
the change from 2006-03-18 that removed this reload sequence
if the palette was unchanged.
...yup.
This one line reversion makes the problem go away.
That doesn't mean it is the correct fix, of course, but it
confirms the origin of the problem:
Can you look into this, Dan?
I think you were the one who suggested that optimization originally.
--- gnuplot/src/color.c 2006-06-09 11:04:52.000000000 -0700
+++ gnuplot-cvs/src/color.c 2006-06-09 11:05:07.000000000 -0700
@@ -120,7 +120,7 @@
passed there to create the header or force its initialization
*/
- if (memcmp(&prev_palette, &sm_palette, sizeof(t_sm_palette))) {
+ if (1) {
term->make_palette(&sm_palette);
prev_palette = sm_palette;
FPRINTF(("make_palette: calling term->make_palette for term with ncolors == 0\n"));
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle WA
|