OSDN Git Service

PATCH: [ 763817 ] Hilight diffs when syntax hilight is off
authorKimmo Varis <kimmov@gmail.com>
Wed, 2 Jul 2003 13:04:18 +0000 (13:04 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 2 Jul 2003 13:04:18 +0000 (13:04 +0000)
Src/MergeEditView.cpp
Src/readme.txt

index 4fc5b09..d7d7cc1 100644 (file)
@@ -176,15 +176,6 @@ void CMergeEditView::OnActivateView(BOOL bActivate, CView* pActivateView, CView*
 void CMergeEditView::GetLineColors(int nLineIndex, COLORREF & crBkgnd,
                                 COLORREF & crText, BOOL & bDrawWhitespace)
 {
-       // If no syntax hilighting
-       if (!theApp.m_bHiliteSyntax)
-       {
-               crBkgnd = RGB(255, 255, 255);
-               crText = RGB(0, 0, 0);
-               bDrawWhitespace = FALSE;
-               return;
-       }
-
        DWORD dwLineFlags = GetLineFlags(nLineIndex);
        
        // Line inside diff
@@ -234,9 +225,17 @@ void CMergeEditView::GetLineColors(int nLineIndex, COLORREF & crBkgnd,
        }
        else
        {
-               // Line not inside diff, get colors from CrystalEditor
-               CCrystalEditViewEx::GetLineColors(nLineIndex, crBkgnd,
-                       crText, bDrawWhitespace);
+               // If no syntax hilighting
+               if (!theApp.m_bHiliteSyntax)
+               {
+                       crBkgnd = RGB(255, 255, 255);
+                       crText = RGB(0, 0, 0);
+                       bDrawWhitespace = FALSE;
+               }
+               else
+                       // Line not inside diff, get colors from CrystalEditor
+                       CCrystalEditViewEx::GetLineColors(nLineIndex, crBkgnd,
+                               crText, bDrawWhitespace);
        }
 }
 
index aebc7e4..2b1e263 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-02 Kimmo
+ PATCH: [ 763817 ] Hilight diffs when syntax hilight is off
+  WinMerge: MergeEditView.cpp
+
 2003-06-30 Perry
  PATCH: [ 762835 ] Display line number etc beneath editor
   WinMerge: ChildFrm.cpp ChildFrm.h DirFrame.cpp Merge.cpp Merge.dsp