Bug 477996 - scale transforms are not serialised correctly. r+sr=roc

This commit is contained in:
Robert Longson 2009-02-12 13:20:49 +00:00
parent b52fe48b3b
commit de0cb37032

View File

@ -144,7 +144,7 @@ nsSVGTransform::GetValueString(nsAString& aValue)
float sx, sy;
mMatrix->GetA(&sx);
mMatrix->GetD(&sy);
if (sy != 0.0f)
if (sy != sx)
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
NS_LITERAL_STRING("scale(%g, %g)").get(), sx, sy);
else