C++: fix creating a gradient from a const reference to a color

This commit is contained in:
Olivier Goffart 2021-07-22 14:24:41 +02:00
parent c2433d0f0b
commit 0a46b367e2
2 changed files with 5 additions and 1 deletions

View file

@ -177,7 +177,7 @@ public:
#if !defined(DOXYGEN)
// FIXME: we need this to create GradientStop
operator const cbindgen_private::types::Color &() { return inner; }
operator const cbindgen_private::types::Color &() const { return inner; }
#endif
private: