Skip to content

Commit

Permalink
Fix 'warning: result of comparison against a string literal is unspec…
Browse files Browse the repository at this point in the history
…ified'
  • Loading branch information
dafrito committed Nov 30, 2024
1 parent a3fcb9c commit 57b6db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension/internal/pdfinput/svg-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57b6db0

Please sign in to comment.