diff --git a/src/ofxSvgElements.h b/src/ofxSvgElements.h index 1fcc105..bc0f8f3 100755 --- a/src/ofxSvgElements.h +++ b/src/ofxSvgElements.h @@ -129,7 +129,7 @@ class Image : public Element { virtual void draw() override; glm::vec2 getAnchorPointForPercent( float ax, float ay ); - std::string getFilePath() { return filepath; } + std::string getFilePath() { return filepath.string(); } void setColor( ofColor aColor ) { color = aColor; diff --git a/src/ofxSvgParser.cpp b/src/ofxSvgParser.cpp index c151292..e2f5771 100755 --- a/src/ofxSvgParser.cpp +++ b/src/ofxSvgParser.cpp @@ -27,7 +27,7 @@ bool Parser::load( of::filesystem::path aPathToSvg ) { ofFile mainXmlFile( aPathToSvg, ofFile::ReadOnly ); ofBuffer tMainXmlBuffer( mainXmlFile ); - svgPath = aPathToSvg; + svgPath = aPathToSvg.string(); folderPath = ofFilePath::getEnclosingDirectory( aPathToSvg, false ); ofXml xml; @@ -784,7 +784,7 @@ void Parser::_parsePath( ofXml& tnode, std::shared_ptr aSvgPath ) { bool bRelative = false; std::vector npositions= {glm::vec3(0.f, 0.f, 0.f)}; - std::optional ctype; + CssClass::Optional ctype; // check if we are looking for a position if( cchar == 'm' || cchar == 'M' ) {