[webkit-changes] cvs commit: WebCore/khtml khtml_part.cpp

David hyatt at opensource.apple.com
Fri Oct 21 21:38:51 PDT 2005


hyatt       05/10/21 21:38:50

  Modified:    khtml    khtml_part.cpp
  Log:
  Put back in the hasRef() check for jumping to anchors to fix the regression (bug 5457)
  
  Revision  Changes    Path
  1.349     +4 -0      WebCore/khtml/khtml_part.cpp
  
  Index: khtml_part.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/khtml_part.cpp,v
  retrieving revision 1.348
  retrieving revision 1.349
  diff -u -r1.348 -r1.349
  --- khtml_part.cpp	22 Oct 2005 01:41:35 -0000	1.348
  +++ khtml_part.cpp	22 Oct 2005 04:38:49 -0000	1.349
  @@ -1803,6 +1803,10 @@
   
   void KHTMLPart::gotoAnchor()
   {
  +    // If our URL has no ref, then we have no place we need to jump to.
  +    if (!m_url.hasRef())
  +        return;
  +
       QString ref = m_url.encodedHtmlRef();
       if (!gotoAnchor(ref)) {
           // Can't use htmlRef() here because it doesn't know which encoding to use to decode.
  
  
  



More information about the webkit-changes mailing list