diff --git a/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp b/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp index 3ef7934c1be..f7167d01dc0 100644 --- a/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp +++ b/mozilla/layout/svg/base/src/nsSVGOuterSVGFrame.cpp @@ -569,7 +569,9 @@ nsSVGOuterSVGFrame::GetCanvasTM() // our content is the document element so we must premultiply the values // of its currentScale and currentTranslate properties - if (svgElement->mEnumAttributes[nsSVGSVGElement::ZOOMANDPAN].GetAnimValue() + if (mCurrentScale && + mCurrentTranslate && + svgElement->mEnumAttributes[nsSVGSVGElement::ZOOMANDPAN].GetAnimValue() == nsIDOMSVGZoomAndPan::SVG_ZOOMANDPAN_MAGNIFY) { nsCOMPtr zoomPanMatrix; nsCOMPtr temp;