substitute (c) and (C) for copyright strings as documented

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-12-11 12:14:14 +00:00
parent da678e6c39
commit 953aebc2d5
5 changed files with 20 additions and 6 deletions

View File

@@ -96,6 +96,16 @@ wxIcon wxAboutDialogInfo::GetIcon() const
return icon;
}
wxString wxAboutDialogInfo::GetCopyrightToDisplay() const
{
wxString ret = m_copyright;
ret.Replace("(c)", "\u00A9");
ret.Replace("(C)", "\u00A9");
return ret;
}
// ----------------------------------------------------------------------------
// wxGenericAboutDialog
// ----------------------------------------------------------------------------
@@ -120,7 +130,7 @@ bool wxGenericAboutDialog::Create(const wxAboutDialogInfo& info)
m_sizerText->Add(label, wxSizerFlags().Centre().Border());
m_sizerText->AddSpacer(5);
AddText(info.GetCopyright());
AddText(info.GetCopyrightToDisplay());
AddText(info.GetDescription());
if ( info.HasWebSite() )