compilation fix for wxDFB STL build (#9753)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,17 +65,14 @@ wxFontInstance *wxFontFaceBase::GetFontInstance(float ptSize, bool aa)
|
|||||||
{
|
{
|
||||||
wxASSERT_MSG( m_refCnt > 0, _T("font library not loaded!") );
|
wxASSERT_MSG( m_refCnt > 0, _T("font library not loaded!") );
|
||||||
|
|
||||||
wxFontInstance *i;
|
for ( wxFontInstanceList::const_iterator i = m_instances->begin();
|
||||||
wxFontInstanceList::Node *node;
|
i != m_instances->end(); ++i )
|
||||||
|
|
||||||
for ( node = m_instances->GetFirst(); node; node = node->GetNext() )
|
|
||||||
{
|
{
|
||||||
i = node->GetData();
|
if ( (*i)->GetPointSize() == ptSize && (*i)->IsAntiAliased() == aa )
|
||||||
if ( i->GetPointSize() == ptSize && i->IsAntiAliased() == aa )
|
return *i;
|
||||||
return i;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = CreateFontInstance(ptSize, aa);
|
wxFontInstance *i = CreateFontInstance(ptSize, aa);
|
||||||
m_instances->Append(i);
|
m_instances->Append(i);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user