OSDN Git Service

PATCH: [ 1149388 ] Check for previous compare text before find again
authorKimmo Varis <kimmov@gmail.com>
Wed, 23 Feb 2005 17:49:20 +0000 (17:49 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 23 Feb 2005 17:49:20 +0000 (17:49 +0000)
Src/editlib/ccrystaltextview.cpp
Src/readme.txt

index 4a0422d..32544dd 100644 (file)
@@ -4559,6 +4559,9 @@ void CCrystalTextView::
 OnEditRepeat ()
 {
   BOOL bEnable = m_bLastSearch;
+  // Show dialog if no last find text
+  if (m_pszLastFindWhat == NULL || _tcslen(m_pszLastFindWhat) == 0)
+    bEnable = FALSE;
   CString sText;
   if (bEnable)
     sText = m_pszLastFindWhat;
index 876977f..d65ea53 100644 (file)
@@ -3,6 +3,8 @@
   Src: ChildFrm.cpp
  PATCH: [ 1149365 ] Check linenumber to goto for upper limit
   Src: MergeEditView.cpp
+ PATCH: [ 1149388 ] Check for previous compare text before find again
+  Src/editlib: ccrystaltextview.cpp
 
 2005-02-22 Kimmo
  PATCH: [ 1145522 ] fix crash on search