Don't require leading TAB in wxAcceleratorEntry::FromString().
FromString() should parse string returned by ToString() successfully but this wasn't the case because the accelerator parsing functions always insisted on having a TAB in the string. Fix this, document the string format and add a unit test checking for the correct behaviour. Closes #12745. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,7 +153,7 @@ TEST_GUI_OBJECTS = \
|
||||
$(OBJS)\test_gui_gaugetest.obj \
|
||||
$(OBJS)\test_gui_gridtest.obj \
|
||||
$(OBJS)\test_gui_headerctrltest.obj \
|
||||
$(OBJS)\test_gui_htmllboxtest.obj \
|
||||
$(OBJS)\test_gui_htmllboxtest.obj \
|
||||
$(OBJS)\test_gui_hyperlinkctrltest.obj \
|
||||
$(OBJS)\test_gui_itemcontainertest.obj \
|
||||
$(OBJS)\test_gui_label.obj \
|
||||
@@ -187,6 +187,7 @@ TEST_GUI_OBJECTS = \
|
||||
$(OBJS)\test_gui_image.obj \
|
||||
$(OBJS)\test_gui_rawbmp.obj \
|
||||
$(OBJS)\test_gui_htmlwindow.obj \
|
||||
$(OBJS)\test_gui_accelentry.obj \
|
||||
$(OBJS)\test_gui_menu.obj \
|
||||
$(OBJS)\test_gui_guifuncs.obj \
|
||||
$(OBJS)\test_gui_selstoretest.obj \
|
||||
@@ -773,9 +774,9 @@ $(OBJS)\test_gui_gridtest.obj: .\controls\gridtest.cpp
|
||||
$(OBJS)\test_gui_headerctrltest.obj: .\controls\headerctrltest.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\headerctrltest.cpp
|
||||
|
||||
$(OBJS)\test_gui_htmllboxtest.obj: .\controls\htmllboxtest.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\htmllboxtest.cpp
|
||||
|
||||
$(OBJS)\test_gui_htmllboxtest.obj: .\controls\htmllboxtest.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\htmllboxtest.cpp
|
||||
|
||||
$(OBJS)\test_gui_hyperlinkctrltest.obj: .\controls\hyperlinkctrltest.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\controls\hyperlinkctrltest.cpp
|
||||
|
||||
@@ -875,6 +876,9 @@ $(OBJS)\test_gui_rawbmp.obj: .\image\rawbmp.cpp
|
||||
$(OBJS)\test_gui_htmlwindow.obj: .\html\htmlwindow.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\html\htmlwindow.cpp
|
||||
|
||||
$(OBJS)\test_gui_accelentry.obj: .\menu\accelentry.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\menu\accelentry.cpp
|
||||
|
||||
$(OBJS)\test_gui_menu.obj: .\menu\menu.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\menu\menu.cpp
|
||||
|
||||
|
Reference in New Issue
Block a user