From 609ea40a2049470fdb8809f40f5976410818b5b4 Mon Sep 17 00:00:00 2001 From: ikemo Date: Tue, 17 Jun 2003 10:18:03 +0000 Subject: [PATCH] fix: make & go to wrong anchor when search. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@366 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/ChangeLog | 5 +++++ kita/src/part/kitahtmlpart.cpp | 3 ++- kita/src/part/kitahtmlpart.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kita/ChangeLog b/kita/ChangeLog index 86bca16..62a6f53 100644 --- a/kita/ChangeLog +++ b/kita/ChangeLog @@ -1,5 +1,10 @@ 2003-06-17 Hideki Ikemoto + * part/kitahtmlpart.{cpp, h}: + fix: make & go to wrong anchor when search. + +2003-06-17 Hideki Ikemoto + * part/kitathreadview.{cpp, h}, kitasubjectview.cpp: show "kokomadeyonda"(bookmark). diff --git a/kita/src/part/kitahtmlpart.cpp b/kita/src/part/kitahtmlpart.cpp index 3d7f10f..0704975 100644 --- a/kita/src/part/kitahtmlpart.cpp +++ b/kita/src/part/kitahtmlpart.cpp @@ -33,7 +33,7 @@ KitaHTMLPart::~KitaHTMLPart() void KitaHTMLPart::reset() { m_prevQuery = ""; - m_nextHit = 0; + m_nextHit = -1; m_hitCount = 0; m_contents = ""; m_pointStack.clear(); @@ -177,6 +177,7 @@ void KitaHTMLPart::highLighten( bool yes, const QStringList &query ) displayContents( contents(), m_url ); DOM::NodeList nodes; resetHit(); + m_hitCount = 0; nodes = document().getElementsByTagName("body"); highLightenNodes( nodes, query ); } diff --git a/kita/src/part/kitahtmlpart.h b/kita/src/part/kitahtmlpart.h index dd34bbe..3da346c 100644 --- a/kita/src/part/kitahtmlpart.h +++ b/kita/src/part/kitahtmlpart.h @@ -42,7 +42,7 @@ class KitaHTMLPart : public KHTMLPart public: int nextHit(); - void resetHit() { m_nextHit = 0; } + void resetHit() { m_nextHit = -1; } const QStringList prevQuery() const { return m_prevQuery; } void pushCurrentPosition(); void reset(); -- 2.11.0