X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57bd4c6031d438f11af0ec540136f49a928b923c..ad94cb2b4f4bee1dce6fa6bfce3a04b117b83141:/src/msw/fontdlg.cpp?ds=sidebyside diff --git a/src/msw/fontdlg.cpp b/src/msw/fontdlg.cpp index 51a5bd1b2b..96c3289a6d 100644 --- a/src/msw/fontdlg.cpp +++ b/src/msw/fontdlg.cpp @@ -33,7 +33,6 @@ #include "wx/utils.h" #include "wx/dialog.h" #include "wx/log.h" - #include "wx/cmndata.h" #include "wx/math.h" #endif @@ -69,13 +68,13 @@ int wxFontDialog::ShowModal() chooseFontStruct.hwndOwner = GetHwndOf(m_parent); chooseFontStruct.lpLogFont = &logFont; - if ( m_fontData.m_initialFont.Ok() ) + if ( m_fontData.m_initialFont.IsOk() ) { flags |= CF_INITTOLOGFONTSTRUCT; wxFillLogFont(&logFont, &m_fontData.m_initialFont); } - if ( m_fontData.m_fontColour.Ok() ) + if ( m_fontData.m_fontColour.IsOk() ) { chooseFontStruct.rgbColors = wxColourToRGB(m_fontData.m_fontColour); } @@ -112,17 +111,12 @@ int wxFontDialog::ShowModal() } else { - // common dialog failed - why? -#ifdef __WXDEBUG__ DWORD dwErr = CommDlgExtendedError(); if ( dwErr != 0 ) { - // this msg is only for developers - wxLogError(wxT("Common dialog failed with error code %0lx."), - dwErr); + wxLogError(_("Common dialog failed with error code %0lx."), dwErr); } //else: it was just cancelled -#endif return wxID_CANCEL; }