git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3717
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
#if (GTK_MINOR_VERSION > 0)
m_text << _T('_');
- } else
- if (*pc == _T('/')) /* we have to filter out slashes ... */
+ }
+ else if ( *pc == _T('_') ) // escape underscores
+ {
+ m_text << _T("__");
+ }
+ else if (*pc == _T('/')) /* we have to filter out slashes ... */
{
m_text << _T('\\'); /* ... and replace them with back slashes */
#endif
wxString s = _T("<main>/");
for ( const wxChar *pc = text; *pc != _T('\0'); pc++ )
{
- if (*pc == _T('_')) pc++; /* skip it */
+ while (*pc == _T('_')) pc++; /* skip it */
s << *pc;
}
{
#if (GTK_MINOR_VERSION > 0)
m_text << _T('_');
- } else
- if (*pc == _T('/')) /* we have to filter out slashes ... */
+ }
+ else if ( *pc == _T('_') ) // escape underscores
+ {
+ m_text << _T("__");
+ }
+ else if (*pc == _T('/')) /* we have to filter out slashes ... */
{
m_text << _T('\\'); /* ... and replace them with back slashes */
#endif
wxString s = _T("<main>/");
for ( const wxChar *pc = text; *pc != _T('\0'); pc++ )
{
- if (*pc == _T('_')) pc++; /* skip it */
+ while (*pc == _T('_')) pc++; /* skip it */
s << *pc;
}