projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add SetFocusIgnoringChildren() to wxControlContainer. This
[wxWidgets.git]
/
src
/
os2
/
font.cpp
diff --git
a/src/os2/font.cpp
b/src/os2/font.cpp
index 4937df9fd1cd1719e533c0ef2879b93e9cd6e6fb..517053a9155ed3e5f432b5636608b87a32ff20b9 100644
(file)
--- a/
src/os2/font.cpp
+++ b/
src/os2/font.cpp
@@
-35,6
+35,7
@@
#include "wx/fontutil.h"
#include "wx/fontmap.h"
#include "wx/fontutil.h"
#include "wx/fontmap.h"
+#include "wx/encinfo.h"
#include "wx/tokenzr.h"
#include "wx/tokenzr.h"
@@
-375,8
+376,6
@@
bool wxFontRefData::Alloc(
wxString sFaceName;
long flId = m_hFont;
long lRc;
wxString sFaceName;
long flId = m_hFont;
long lRc;
- short nIndex = 0;
- PFONTMETRICS pFM = NULL;
ERRORID vError;
wxString sError;
ERRORID vError;
wxString sError;
@@
-1073,7
+1072,7
@@
void wxFont::SetEncoding(
RealizeResource();
} // end of wxFont::SetEncoding
RealizeResource();
} // end of wxFont::SetEncoding
-void wxFont::SetNativeFontInfo(
+void wxFont::
Do
SetNativeFontInfo(
const wxNativeFontInfo& rInfo
)
{
const wxNativeFontInfo& rInfo
)
{
@@
-1139,11
+1138,10
@@
wxFontEncoding wxFont::GetEncoding() const
return M_FONTDATA->GetEncoding();
} // end of wxFont::GetEncoding
return M_FONTDATA->GetEncoding();
} // end of wxFont::GetEncoding
-wxNativeFontInfo* wxFont::GetNativeFontInfo() const
+
const
wxNativeFontInfo* wxFont::GetNativeFontInfo() const
{
{
- if (M_FONTDATA->HasNativeFontInfo())
- return new wxNativeFontInfo(M_FONTDATA->GetNativeFontInfo());
- return 0;
+ return M_FONTDATA->HasNativeFontInfo() ? &(M_FONTDATA->GetNativeFontInfo())
+ : NULL;
} // end of wxFont::GetNativeFontInfo
//
} // end of wxFont::GetNativeFontInfo
//