Attempt to fix Neil's bustage

git-svn-id: svn://10.0.0.236/trunk@167968 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2005-01-19 03:34:38 +00:00
parent fdc4e41a42
commit 9cc5baf69d

View File

@@ -175,8 +175,8 @@ nsGfxButtonControlFrame::CreateAnonymousContent(nsPresContext* aPresContext,
// Compress whitespace out of label if needed.
if (!GetStyleText()->WhiteSpaceIsSignificant()) {
value.CompressWhitespace();
} else if (value.Length() > 2 && value[0] == ' ' &&
value[value.Length() - 1] == ' '){
} else if (value.Length() > 2 && value.First() == ' ' &&
value.CharAt(value.Length() - 1) == ' ') {
// This is a bit of a hack. The reason this is here is as follows: we now
// have default padding on our buttons to make them non-ugly.
// Unfortunately, IE-windows does not have such padding, so people will