Author: janderwald
Date: Sun Jun 18 18:13:03 2006
New Revision: 22390
URL:
http://svn.reactos.ru/svn/reactos?rev=22390&view=rev
Log:
specify CF_INITTOLOGFONTSTRUCT flag to auto-select current font in font selection
dialog.c
bug report by tsg1zzn fixes bug 1561
Modified:
trunk/reactos/base/applications/notepad/dialog.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/notepad/d…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c (original)
+++ trunk/reactos/base/applications/notepad/dialog.c Sun Jun 18 18:13:03 2006
@@ -670,7 +670,7 @@
cf.lStructSize=sizeof(cf);
cf.hwndOwner=Globals.hMainWnd;
cf.lpLogFont=&lf;
- cf.Flags=CF_SCREENFONTS;
+ cf.Flags=CF_SCREENFONTS | CF_INITTOLOGFONTSTRUCT;
if( ChooseFont(&cf) )
{