OSDN Git Service

BUG: [ 1369856 ] Crashed when interface language is changed
authorPerry Rapp <elsapo@users.sourceforge.net>
Wed, 30 Nov 2005 18:52:47 +0000 (18:52 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Wed, 30 Nov 2005 18:52:47 +0000 (18:52 +0000)
Src/Changes.txt
Src/DirDoc.cpp

index b200186..23cdb08 100644 (file)
@@ -1,6 +1,8 @@
 2005-11-30 Perry
  PATCH: [ 1369657 ] Delete unused variable DiffFuncStruct::msgStatusUpdate
-  Src/DiffThread.cpp
+  Src: DiffThread.cpp
+ BUG: [ 1369856 ] Crashed when interface language is changed
+  Src: DirDoc.cpp
 
 2005-11-30 Kimmo
  PATCH: [ 1369544 ] Catalan translation update
index 5c17747..f1bb91e 100644 (file)
@@ -396,6 +396,12 @@ void CDirDoc::Redisplay()
        if (!m_pDirView)
                return;
 
+       // Do not redisplay an empty CDirView
+       // Not only does it not have results, but AddSpecialItems will crash
+       // trying to dereference null context pointer to get to paths
+       if (!HasDiffs())
+               return;
+
        m_pDirView->Redisplay();
 }