OSDN Git Service

Fix assert caused by my checkin 2007-04-08 Remove couple of useless wrapper functions
authorKimmo Varis <kimmov@gmail.com>
Wed, 11 Apr 2007 14:53:36 +0000 (14:53 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 11 Apr 2007 14:53:36 +0000 (14:53 +0000)
Src/Changes.txt
Src/MergeDoc.cpp

index 4ef184d..876bfa7 100644 (file)
@@ -2,6 +2,10 @@ Src\Changes.txt
 Add new items to top.
 (This summarizes all changes to all files under Src, including Src\Languages.)
 
+2007-04-11 Kimmo
+ Fix assert caused by my checkin 2007-04-08 Remove couple of useless wrapper functions
+  Src: MergeDoc.cpp
+
 2007-04-11 Gal
  PATCH: [ 1697691 ] Syntax highlighting scheme as resource strings
   Src/Languages/*: Merge*.rc
index 8b10a48..2b70d34 100644 (file)
@@ -3194,8 +3194,8 @@ void CMergeDoc::UpdateResources()
 // Return current word breaking break type setting (whitespace only or include punctuation)
 bool CMergeDoc::GetBreakType() const
 {
-       BOOL breakType = GetOptionsMgr()->GetBool(OPT_BREAK_TYPE);
-       return !!breakType;
+       BOOL breakType = GetOptionsMgr()->GetInt(OPT_BREAK_TYPE);
+       return breakType > 0;
 }
 
 // Return true to do line diff colors at the byte level (false to do them at word level)