From 57b6db0d8079aa733c763dbd4c719443ac85ff08 Mon Sep 17 00:00:00 2001 From: Aaron Faanes Date: Thu, 28 Nov 2024 22:38:04 -0800 Subject: [PATCH] Fix 'warning: result of comparison against a string literal is unspecified' --- src/extension/internal/pdfinput/svg-builder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 7f05b270ca..1474d92bc1 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -881,7 +881,8 @@ Inkscape::XML::Node *SvgBuilder::_createClip(const std::string &d, const Geom::A std::string prev_d = prev_path->attribute("d"); std::string prev_tr = prev_path->attribute("transform") ? prev_path->attribute("transform") : sp_svg_transform_write(Geom::identity()); - bool prev_even_odd = prev_path->attribute("clip-rule") ? prev_path->attribute("clip-rule") == "evenodd" : false; + bool prev_even_odd = + prev_path->attribute("clip-rule") ? std::string(prev_path->attribute("clip-rule")) == "evenodd" : false; // Don't create an identical new clipping path if (prev_d == d && prev_tr == sp_svg_transform_write(tr) && prev_even_odd == even_odd) {