diff --git a/src/core/Animators/graphanimator.cpp b/src/core/Animators/graphanimator.cpp index bc81d2e06..a9fd87e88 100644 --- a/src/core/Animators/graphanimator.cpp +++ b/src/core/Animators/graphanimator.cpp @@ -546,10 +546,10 @@ void GraphAnimator::graph_saveSVG(SvgExporter& exp, } else { const auto tagName = transform ? "animateTransform" : "animate"; auto anim = exp.createElement(tagName); - if (transform) { - if (!beginEvent.isEmpty()) { anim.setAttribute("begin", beginEvent); } - if (!endEvent.isEmpty()) { anim.setAttribute("end", endEvent); } - } + + if (!beginEvent.isEmpty()) { anim.setAttribute("begin", beginEvent); } + if (!endEvent.isEmpty()) { anim.setAttribute("end", endEvent); } + anim.setAttribute("attributeName", attrName); if(!type.isEmpty()) anim.setAttribute("type", type); const qreal div = span - 1; diff --git a/src/core/Animators/transformanimator.cpp b/src/core/Animators/transformanimator.cpp index df28016bf..b810bcae0 100644 --- a/src/core/Animators/transformanimator.cpp +++ b/src/core/Animators/transformanimator.cpp @@ -677,7 +677,9 @@ QDomElement BoxTransformAnimator::saveSVG(SvgExporter& exp, beginEvent, endEvent); { const auto opaAnim = getOpacityAnimator(); - opaAnim->saveQrealSVG(exp, unpivot, visRange, "opacity", 0.01); + opaAnim->saveQrealSVG(exp, unpivot, visRange, + "opacity", 0.01, false, "", "%1", + beginEvent, endEvent); } auto shear = exp.createElement("g");