Don't crash on trailing '%' in wxDateTime::Format(). See #17931

This commit is contained in:
Paul Cornett
2017-08-01 08:35:58 -07:00
parent 1eef3fc5fc
commit 3a9fc640e4
2 changed files with 9 additions and 2 deletions

View File

@@ -822,6 +822,8 @@ void DateTimeTestCase::TestTimeFormat()
}
}
CPPUNIT_ASSERT(wxDateTime::Now().Format("%") == "%");
wxDateTime dt;
#if 0