Skip to content

Commit

Permalink
Fixes Cairo-enabled build breakage from "Add C++17 compatibility in a…
Browse files Browse the repository at this point in the history
…ddition to C++11 (adobe#194)" commit

Commit e091851 missed a change in the cairo-related code.

Fixes adobe#195.
  • Loading branch information
HinTak committed Feb 2, 2024
1 parent e091851 commit e2d7ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svgnative/src/ports/cairo/CairoSVGRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ inline void createCairoPattern(const Paint& paint, float opacity, cairo_pattern_
{
*pat = NULL;

if (paint.type() != typeid(Gradient))
if (!SVGNative::holds_alternative<Gradient>(paint))
return;

const auto& gradient = SVGNative::get<Gradient>(paint);
Expand Down

0 comments on commit e2d7ae5

Please sign in to comment.