From 947746f3e4a73d175043e608f29a5e634e05b903 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 21 Feb 2002 23:16:57 +0000 Subject: [PATCH] Bug #126981 --> make HTML anchors work again by reversing the logic on an if clause. r=sspitzer sr=alecf a=shaver git-svn-id: svn://10.0.0.236/trunk@115177 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index b9386601e40..637fcf6b25d 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -4971,7 +4971,7 @@ nsDocShell::ScrollIfAnchor(nsIURI * aURI, PRBool * aWasAnchor) // This means that comparing "http://www.ABC.com/" to "http://www.abc.com/" // will fail this test. - if (Substring(currentLeftStart, currentLeftEnd).Equals(sNewLeft)) { + if (!Substring(currentLeftStart, currentLeftEnd).Equals(sNewLeft)) { return NS_OK; // URIs not the same }