Implement wxMask copy ctor for wxGTK.
Without copy ctor copying masks simply crashed because the same pointer was deleted twice. Also added a (completely trivial but better than nothing...) unit test for wxBitmap to check that copying masks does work now. Closes #11854. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,6 +120,7 @@ TEST_GUI_OBJECTS = \
|
||||
$(OBJS)\test_gui_rect.obj \
|
||||
$(OBJS)\test_gui_size.obj \
|
||||
$(OBJS)\test_gui_point.obj \
|
||||
$(OBJS)\test_gui_bitmap.obj \
|
||||
$(OBJS)\test_gui_colour.obj \
|
||||
$(OBJS)\test_gui_ellipsization.obj \
|
||||
$(OBJS)\test_gui_measuring.obj \
|
||||
@@ -627,6 +628,9 @@ $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
|
||||
$(OBJS)\test_gui_point.obj: .\geometry\point.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\point.cpp
|
||||
|
||||
$(OBJS)\test_gui_bitmap.obj: .\graphics\bitmap.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\graphics\bitmap.cpp
|
||||
|
||||
$(OBJS)\test_gui_colour.obj: .\graphics\colour.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\graphics\colour.cpp
|
||||
|
||||
|
Reference in New Issue
Block a user