[DEBUG] correct path end and not ending

This commit is contained in:
Edouard DUPIN 2015-12-03 22:10:30 +01:00
parent 462958f749
commit cec2736cc9
2 changed files with 4 additions and 2 deletions

View File

@ -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 << "\"");

View File

@ -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();
}