wxWidgets/tests/graphics
Graham Dawes db15e99884 Fix wxBitmap::GetRawData() in wxQt
This method used to return a dangling pointer to a temporary buffer,
which resulted in a crash when using it, e.g. in the unit test.

Fix this by keeping a QImage as a member in wxBitmapRefData, so that the
pointer to its data remain valid until UngetRawData() is called.

Also check that GetRawData() returns a non-null pointer in the test.

Closes https://github.com/wxWidgets/wxWidgets/pull/1067
2018-12-13 15:24:54 +01:00
..
affinematrix.cpp Fix some build warnings 2018-11-25 21:29:38 +01:00
bitmap.cpp Fix wxBitmap::GetRawData() in wxQt 2018-12-13 15:24:54 +01:00
boundingbox.cpp Add wxOVERRIDE to test files 2018-07-29 12:08:53 +02:00
clippingbox.cpp Fix some build warnings 2018-11-25 21:29:38 +01:00
colour.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
ellipsization.cpp Fix ellipsization unit test when using pixel scaling 2016-02-26 15:09:39 +01:00
graphmatrix.cpp Add test suite to check wxGraphicsMatrix operations 2016-09-18 23:09:44 +02:00
graphpath.cpp Remove unused variable in graphpath test 2018-07-29 16:29:36 +02:00
measuring.cpp Fix some memory leaks in the tests 2017-10-01 09:41:49 -07:00