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:
Vadim Zeitlin
2026-07-30 18:59:47 +02:00
parent aad79cbf7e
commit 09d9aeacaa
7 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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;