comparison kdiff3/src-QT4/mergeresultwindow.cpp @ 103:1b9430d5cf2b

Separate deltas if only one is of type where B==C
author joachim99
date Sun, 28 Nov 2010 16:44:56 +0000
parents 236f1c9c3fbf
children 7bca1f1340f6
comparison
equal deleted inserted replaced
102:4bac4535ea7f 103:1b9430d5cf2b
284 // the other one is a real conflict, then this line returns false. 284 // the other one is a real conflict, then this line returns false.
285 return ml1.id3l->bAEqC == ml2.id3l->bAEqC && ml1.id3l->bAEqB == ml2.id3l->bAEqB; 285 return ml1.id3l->bAEqC == ml2.id3l->bAEqC && ml1.id3l->bAEqB == ml2.id3l->bAEqB;
286 } 286 }
287 else 287 else
288 return ( 288 return (
289 !ml1.bConflict && !ml2.bConflict && ml1.bDelta && ml2.bDelta && ml1.srcSelect == ml2.srcSelect || 289 !ml1.bConflict && !ml2.bConflict && ml1.bDelta && ml2.bDelta && ml1.srcSelect == ml2.srcSelect
290 && (ml1.mergeDetails==ml2.mergeDetails || ml1.mergeDetails!=eBCAddedAndEqual && ml2.mergeDetails!=eBCAddedAndEqual )
291 ||
290 !ml1.bDelta && !ml2.bDelta 292 !ml1.bDelta && !ml2.bDelta
291 ); 293 );
292 } 294 }
293 295
294 void MergeResultWindow::merge(bool bAutoSolve, int defaultSelector, bool bConflictsOnly, bool bWhiteSpaceOnly ) 296 void MergeResultWindow::merge(bool bAutoSolve, int defaultSelector, bool bConflictsOnly, bool bWhiteSpaceOnly )