specify CF_INITTOLOGFONTSTRUCT flag to auto-select current font in font selection dialog.c

bug report by tsg1zzn fixes bug 1561

svn path=/trunk/; revision=22390
This commit is contained in:
Johannes Anderwald 2006-06-18 14:13:03 +00:00
parent d33d5d5251
commit aabda4b500

View file

@ -670,7 +670,7 @@ VOID DIALOG_SelectFont(VOID)
cf.lStructSize=sizeof(cf);
cf.hwndOwner=Globals.hMainWnd;
cf.lpLogFont=&lf;
cf.Flags=CF_SCREENFONTS;
cf.Flags=CF_SCREENFONTS | CF_INITTOLOGFONTSTRUCT;
if( ChooseFont(&cf) )
{