[DEBUG] correct path end and not ending
This commit is contained in:
parent
462958f749
commit
cec2736cc9
@ -75,7 +75,7 @@ bool esvg::Path::parseXML(const std::shared_ptr<exml::Element>& _element, mat2&
|
||||
|
||||
std::string elementXML1 = _element->getAttribute("d");
|
||||
if (elementXML1.size() == 0) {
|
||||
SVG_ERROR("(l "<<_element->getPos()<<") path: missing 'p' attribute");
|
||||
SVG_WARNING("(l "<<_element->getPos()<<") path: missing 'd' attribute or empty");
|
||||
return false;
|
||||
}
|
||||
SVG_VERBOSE("Parse Path : \"" << elementXML1 << "\"");
|
||||
|
@ -349,8 +349,10 @@ esvg::render::PointList esvg::render::Path::generateListPoints(int32_t _level, i
|
||||
break;
|
||||
}
|
||||
}
|
||||
// special case : No request end of path ==> open path:
|
||||
if (tmpListPoint.size() != 0) {
|
||||
SVG_WARNING("TODO ... check this ...");
|
||||
SVG_VERBOSE("Auto-end PATH");
|
||||
tmpListPoint.back().setEndPath();
|
||||
out.addList(tmpListPoint);
|
||||
tmpListPoint.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user