]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1482626 ] Fix widgets sample build on unicode
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 5 May 2006 17:24:00 +0000 (17:24 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 5 May 2006 17:24:00 +0000 (17:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/widgets.cpp

index 40e8b3b3afebeb8f5e42cf6af78862f62369fee5..3473a56c9f97cd699c4ac9476e3136a93c13d021 100644 (file)
@@ -525,7 +525,7 @@ void WidgetsFrame::OnSetTooltip(wxCommandEvent& WXUNUSED(event))
         return;
 
     s_tip = dialog.GetValue();
-    s_tip.Replace("\\n", "\n");
+    s_tip.Replace(_T("\\n"), _T("\n"));
 
     WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
     page->GetWidget()->SetToolTip(s_tip);