diff --git a/include/lunasvg.h b/include/lunasvg.h index 9fa6ad6..1fba73f 100644 --- a/include/lunasvg.h +++ b/include/lunasvg.h @@ -541,7 +541,7 @@ class LUNASVG_API Element { * @brief Returns the parent element. * @return The parent element of this element. If this element has no parent, a null `Element` is returned. */ - Element parent() const; + Element parentElement() const; /** * @brief Checks if the element is null. diff --git a/source/lunasvg.cpp b/source/lunasvg.cpp index 58960f0..803d623 100644 --- a/source/lunasvg.cpp +++ b/source/lunasvg.cpp @@ -334,7 +334,7 @@ Box Element::getBoundingBox() const return Box(); } -Element Element::parent() const +Element Element::parentElement() const { if(m_element) return m_element->parent();