From b8bb3aebf2cbf3baee2b11ce94249294d657bca3 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 28 Jun 2013 21:49:14 +0200 Subject: [PATCH] [DEV] update to the exml patch --- esvg/Circle.cpp | 4 ++-- esvg/Ellipse.cpp | 4 ++-- esvg/Group.cpp | 6 +++--- esvg/Path.cpp | 2 +- esvg/Polyline.cpp | 2 +- esvg/esvg.cpp | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/esvg/Circle.cpp b/esvg/Circle.cpp index 679a84f..38e348d 100644 --- a/esvg/Circle.cpp +++ b/esvg/Circle.cpp @@ -49,13 +49,13 @@ bool esvg::Circle::Parse(exml::Element * _element, agg::trans_affine& _parentTra if (content.Size()!=0) { m_radius = ParseLength(content); } else { - SVG_ERROR("(l "<<_element->Pos()<<") Circle \"r\" is not present"); + SVG_ERROR("(l "<<_element->GetPos()<<") Circle \"r\" is not present"); return false; } if (0 > m_radius) { m_radius = 0; - SVG_ERROR("(l "<<_element->Pos()<<") Circle \"r\" is negative"); + SVG_ERROR("(l "<<_element->GetPos()<<") Circle \"r\" is negative"); return false; } _sizeMax.setValue(m_position.x() + m_radius, m_position.y() + m_radius); diff --git a/esvg/Ellipse.cpp b/esvg/Ellipse.cpp index 1c1962b..2685928 100644 --- a/esvg/Ellipse.cpp +++ b/esvg/Ellipse.cpp @@ -50,14 +50,14 @@ bool esvg::Ellipse::Parse(exml::Element * _element, agg::trans_affine& _parentTr if (content.Size()!=0) { m_r.setX(ParseLength(content)); } else { - SVG_ERROR("(l "<<_element->Pos()<<") Ellipse \"rx\" is not present"); + SVG_ERROR("(l "<<_element->GetPos()<<") Ellipse \"rx\" is not present"); return false; } content = _element->GetAttribute("ry"); if (content.Size()!=0) { m_r.setY(ParseLength(content)); } else { - SVG_ERROR("(l "<<_element->Pos()<<") Ellipse \"ry\" is not present"); + SVG_ERROR("(l "<<_element->GetPos()<<") Ellipse \"ry\" is not present"); return false; } _sizeMax.setValue(m_c.x() + m_r.x(), m_c.y() + m_r.y()); diff --git a/esvg/Group.cpp b/esvg/Group.cpp index dfa7f2f..6278537 100644 --- a/esvg/Group.cpp +++ b/esvg/Group.cpp @@ -82,13 +82,13 @@ bool esvg::Group::Parse(exml::Element * _element, agg::trans_affine& _parentTran } else if (child->GetValue() == "text") { elementParser = new esvg::Text(m_paint); } else { - SVG_ERROR("(l "<Pos()<<") node not suported : \""<GetValue()<<"\" must be [g,a,path,rect,circle,ellipse,line,polyline,polygon,text]"); + SVG_ERROR("(l "<GetPos()<<") node not suported : \""<GetValue()<<"\" must be [g,a,path,rect,circle,ellipse,line,polyline,polygon,text]"); } if (NULL == elementParser) { - SVG_ERROR("(l "<Pos()<<") error on node: \""<GetValue()<<"\" allocation error or not supported ..."); + SVG_ERROR("(l "<GetPos()<<") error on node: \""<GetValue()<<"\" allocation error or not supported ..."); } else { if (false == elementParser->Parse(child, m_transformMatrix, tmpPos)) { - SVG_ERROR("(l "<Pos()<<") error on node: \""<GetValue()<<"\" Sub Parsing ERROR"); + SVG_ERROR("(l "<GetPos()<<") error on node: \""<GetValue()<<"\" Sub Parsing ERROR"); delete(elementParser); elementParser = NULL; } else { diff --git a/esvg/Path.cpp b/esvg/Path.cpp index 7058d48..bedef05 100644 --- a/esvg/Path.cpp +++ b/esvg/Path.cpp @@ -79,7 +79,7 @@ bool esvg::Path::Parse(exml::Element * _element, agg::trans_affine& _parentTrans etk::UString elementXML1 = _element->GetAttribute("d"); if (elementXML1.Size()==0) { - SVG_ERROR("(l "<<_element->Pos()<<") path: missing 'p' attribute"); + SVG_ERROR("(l "<<_element->GetPos()<<") path: missing 'p' attribute"); return false; } SVG_VERBOSE("Parse Path : \"" << elementXML << "\""); diff --git a/esvg/Polyline.cpp b/esvg/Polyline.cpp index 9ddf780..21b8a78 100644 --- a/esvg/Polyline.cpp +++ b/esvg/Polyline.cpp @@ -36,7 +36,7 @@ bool esvg::Polyline::Parse(exml::Element * _element, agg::trans_affine& _parentT etk::UString sss1 = _element->GetAttribute("points"); if (sss1.Size()==0) { - SVG_ERROR("(l "<<_element->Pos()<<") polyline: missing points attribute"); + SVG_ERROR("(l "<<_element->GetPos()<<") polyline: missing points attribute"); return false; } _sizeMax.setValue(0,0); diff --git a/esvg/esvg.cpp b/esvg/esvg.cpp index b478895..9a5754b 100644 --- a/esvg/esvg.cpp +++ b/esvg/esvg.cpp @@ -121,14 +121,14 @@ esvg::Document::Document(const etk::UString& _fileName) : m_renderedElement(NULL // Node ignore : generaly inkscape data continue; } else { - SVG_ERROR("(l "<Pos()<<") node not suported : \""<GetValue()<<"\" must be [title,g,a,path,rect,circle,ellipse,line,polyline,polygon,text,metadata]"); + SVG_ERROR("(l "<GetPos()<<") node not suported : \""<GetValue()<<"\" must be [title,g,a,path,rect,circle,ellipse,line,polyline,polygon,text,metadata]"); } if (NULL == elementParser) { - SVG_ERROR("(l "<Pos()<<") error on node: \""<GetValue()<<"\" allocation error or not supported ..."); + SVG_ERROR("(l "<GetPos()<<") error on node: \""<GetValue()<<"\" allocation error or not supported ..."); continue; } if (false == elementParser->Parse(child, m_transformMatrix, size)) { - SVG_ERROR("(l "<Pos()<<") error on node: \""<GetValue()<<"\" Sub Parsing ERROR"); + SVG_ERROR("(l "<GetPos()<<") error on node: \""<GetValue()<<"\" Sub Parsing ERROR"); delete(elementParser); elementParser = NULL; continue;