From 407d38d9edfcf857298edafce216646656b7d753 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Nov 2017 14:23:07 +0100 Subject: [PATCH] Always use wxTE_MULTILINE explicitly in PositionToCoords() test While it is added implicitly when running all tests in the order, this style wasn't used if just this test was ran using "-c PositionToCoords" option. Specify wxTE_MULTILINE in it explicitly to allow this to work too. --- tests/controls/textctrltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index 89ff430cd3..f824d92a82 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -603,7 +603,7 @@ void TextCtrlTestCase::PositionToCoordsRich2() void TextCtrlTestCase::DoPositionToCoordsTestWithStyle(long style) { delete m_text; - CreateText(style); + CreateText(style|wxTE_MULTILINE); // Asking for invalid index should fail. WX_ASSERT_FAILS_WITH_ASSERT( m_text->PositionToCoords(1) );