aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/src/vec_core.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-02-06 00:05:27 +0100
committerjaseg <git@jaseg.de>2021-02-06 00:05:27 +0100
commit8c494f77361a6774a30ee86a86c40c4bdeeda83a (patch)
treeef709f17fa7a82ec9424078b4f7a269cd8778873 /svg-flatten/src/vec_core.cpp
parentbf428103d3a05289f66a6215374515dc98e46a14 (diff)
downloadgerbolyze-8c494f77361a6774a30ee86a86c40c4bdeeda83a.tar.gz
gerbolyze-8c494f77361a6774a30ee86a86c40c4bdeeda83a.tar.bz2
gerbolyze-8c494f77361a6774a30ee86a86c40c4bdeeda83a.zip
Work on fedora/debian compatibility
Diffstat (limited to 'svg-flatten/src/vec_core.cpp')
-rw-r--r--svg-flatten/src/vec_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/svg-flatten/src/vec_core.cpp b/svg-flatten/src/vec_core.cpp
index 9d2909f..add94b4 100644
--- a/svg-flatten/src/vec_core.cpp
+++ b/svg-flatten/src/vec_core.cpp
@@ -556,7 +556,7 @@ gerbolyze::VectorizerSelectorizer::VectorizerSelectorizer(const string default_v
ImageVectorizer *gerbolyze::VectorizerSelectorizer::select(const pugi::xml_node &img) {
const string id = img.attribute("id").value();
cerr << "selecting vectorizer for image \"" << id << "\"" << endl;
- if (m_map.contains(id)) {
+ if (m_map.count(id) > 0) {
cerr << " -> found" << endl;
return makeVectorizer(m_map[id]);
}