|
From: don t. <dt...@to...> - 2010-02-22 20:35:15
|
> > > One problem I note in both cases: Font changes made with the "Choose
> > > Font" Windows dialog do not take effect unless followed by a replot
> >
> > The appended patch fixes the problem for me. I general, I think
> > it should be okay because you cannot get to that dialog unless
>
> Careful. It may not work for volatile input data, e.g.
> in-line data typed from the command line.
>
> It would probably be better to set up a call to do_string_replot()
> rather than to call replotrequest() directly. The routine tests
Thanks for the tip. Revised patch below works with in-line data.
Don Taber
---------------------------------------------------
--- wgraph.c.orig 2010-02-19 11:17:11.000000000 -0800
+++ wgraph.c 2010-02-22 12:26:56.000000000 -0800
@@ -771,7 +771,6 @@
}
return;
}
-
static void
SelFont(LPGW lpgw)
{
@@ -815,6 +814,8 @@
strcpy(lpgw->deffontname,lpgw->fontname);
lpgw->deffontsize = lpgw->fontsize;
SendMessage(lpgw->hWndGraph,WM_COMMAND,M_REBUILDTOOLS,0L);
+ /* DBT 2010-02-22 replot to force immediate font change, volatile data OK */
+ do_string_replot("");
}
#endif
}
|