Bug 40412: image inputs should send x and y not .x and .y if no name; r=harishd

This commit is contained in:
pollmann%netscape.com 2000-08-03 22:05:44 +00:00
parent 27099452d0
commit 40819e4ba8
2 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
nsAutoString name;
nsresult result = GetName(&name);
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
if (NS_CONTENT_ATTR_HAS_VALUE == result && (name.Length() > 0)) {
aNames[0] = name;
aNames[0].AppendWithConversion(".x");
aNames[1] = name;

View File

@ -406,7 +406,7 @@ nsImageControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues,
nsAutoString name;
nsresult result = GetName(&name);
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
if (NS_CONTENT_ATTR_HAS_VALUE == result && (name.Length() > 0)) {
aNames[0] = name;
aNames[0].AppendWithConversion(".x");
aNames[1] = name;