From 9cc5baf69dcb217d6984820161b64518372f76cb Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Wed, 19 Jan 2005 03:34:38 +0000 Subject: [PATCH] Attempt to fix Neil's bustage git-svn-id: svn://10.0.0.236/trunk@167968 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsGfxButtonControlFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/forms/nsGfxButtonControlFrame.cpp b/mozilla/layout/forms/nsGfxButtonControlFrame.cpp index 6d6943bc91a..f666bdd22f6 100644 --- a/mozilla/layout/forms/nsGfxButtonControlFrame.cpp +++ b/mozilla/layout/forms/nsGfxButtonControlFrame.cpp @@ -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