mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
Remove implicit conversion of wxColour to GdkRGBA* in wxGTK
This was dangerous because it allowed the code accidentally dereferencing wxColour to silently compile -- and do a completely wrong thing. Just add a function returning GdkRGBA explicitly and use it. See #26751.
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
||||
|
||||
// Implementation part
|
||||
#ifdef __WXGTK3__
|
||||
operator const GdkRGBA*() const;
|
||||
const GdkRGBA* GTKGetRGBA() const;
|
||||
#else
|
||||
void CalcPixel( GdkColormap *cmap );
|
||||
int GetPixel() const;
|
||||
|
||||
Reference in New Issue
Block a user