Update of /cvsroot/anyedit/AnyEditv2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3114
Modified Files:
FindDialog.cpp
Log Message:
Bugfix: Find dialog didn't find all occurences for bookmarking.
Index: FindDialog.cpp
===================================================================
RCS file: /cvsroot/anyedit/AnyEditv2/FindDialog.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** FindDialog.cpp 12 Oct 2005 18:55:57 -0000 1.17
--- FindDialog.cpp 17 Oct 2005 17:21:42 -0000 1.18
***************
*** 136,140 ****
if(!m_strFindInitial.IsEmpty())
! m_cmbFind.SetWindowText(m_strFindInitial);
// Set the selection to be all characters after the current selection.
--- 136,143 ----
if(!m_strFindInitial.IsEmpty())
! {
! m_cmbFind.InsertString(0,m_strFindInitial);
! }
! m_cmbFind.SetCurSel(0);
// Set the selection to be all characters after the current selection.
***************
*** 176,180 ****
pMgr->AddFindString(strFind);
! m_pScintilla->SetCurrentPos(0);
long nPosFind = pMgr->Find(m_pScintilla);
--- 179,183 ----
pMgr->AddFindString(strFind);
! m_pScintilla->SetSel(0,0);
long nPosFind = pMgr->Find(m_pScintilla);
***************
*** 200,204 ****
nPosFind = pMgr->Find(m_pScintilla);
}
! m_pScintilla->SetCurrentPos(nCurrentPos);
}
}
--- 203,208 ----
nPosFind = pMgr->Find(m_pScintilla);
}
! m_pScintilla->SetSel(nCurrentPos,nCurrentPos);
! CDialog::OnOK();
}
}
|