Don't use wxTE_DONTWRAP style in Lines() wxTextCtrl unit case.

The last check in this test couldn't pass under MSW as it relied on the (long)
line of text being wrapped but the style used for the control prevented this
from happening. Not sure how could it have ever worked before but in any case
removing wxTE_DONTWRAP does make the test pass.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2011-12-16 19:57:17 +00:00
parent b281a92305
commit bfbd873bfe

View File

@ -390,7 +390,7 @@ void TextCtrlTestCase::Lines()
{
delete m_text;
m_text = new wxTextCtrl(wxTheApp->GetTopWindow(), wxID_ANY, "",
wxDefaultPosition, wxSize(400, 200), wxTE_MULTILINE | wxTE_DONTWRAP);
wxDefaultPosition, wxSize(400, 200), wxTE_MULTILINE);
m_text->SetValue("line1\nline2\nlong long line 3");
m_text->Refresh();