Bug 68570

Summary: "Swap Source with Destination" gives "The files are identical" no matter what
Product: [Applications] kompare Reporter: Amilcar do Carmo Lucas <a.lucas>
Component: generalAssignee: Otto Bruggeman <bruggie>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Amilcar do Carmo Lucas 2003-11-19 10:09:11 UTC
Version:           3.2 (using KDE KDE 3.1.3)
Installed from:    SuSE RPMs
Compiler:          gcc 2.95.3 
OS:          Linux

Even if the files are diferent and the diferences are shown, when I select "Swap Source with Destination" I always get: "The files are identical" :(
Comment 1 Amilcar do Carmo Lucas 2003-11-19 10:09:43 UTC
Thei is CVS HEAD
Comment 2 Otto Bruggeman 2003-11-19 11:46:49 UTC
Subject: kdesdk/kompare/libdiff2

CVS commit by bruggie: 

Fixed bug 68570, it needed temp vars...
CCMAIL: 68570-done@bugs.kde.org


  M +4 -2      komparemodellist.cpp   1.43


--- kdesdk/kompare/libdiff2/komparemodellist.cpp  #1.42:1.43
@@ -1000,8 +1000,10 @@ void KompareModelList::clear()
 void KompareModelList::swap()
 {
+        QString source = m_source;
+        QString destination = m_destination;
         if ( m_info->mode == Kompare::ComparingFiles )
-                compareFiles( m_destination, m_source );
+                compareFiles( destination, source );
         else if ( m_info->mode == Kompare::ComparingDirs )
-                compareDirs( m_destination,  m_source );
+                compareDirs( destination, source );
 }