Bug 139212

Summary: displays wrong destination filename when reading unified diffs
Product: [Applications] kompare Reporter: Olivier Trichet <nive>
Component: generalAssignee: Kompare developers <kompare-devel>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, nick
Priority: NOR    
Version: 3.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch

Description Olivier Trichet 2006-12-25 17:51:12 UTC
Version:           3.4 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-5 (4.0))
Compiler:          Target: i486-linux-gnu 

Imported from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=358852

when reading unified diff files like the one below kompare gives the wrong destination 
file name.

--- empty.txt   2006-03-24 20:03:07.000000000 +0100
+++ text1.txt   2006-03-24 20:02:00.000000000 +0100
@@ -0,0 +1 @@
+just a little text

Instead of displaying text1.txt as destination file kompare gives empty.txt
Comment 1 Olivier Trichet 2006-12-25 17:54:16 UTC
Created attachment 19032 [details]
patch

Correct what seems like copy/paste mistake to get it right
Comment 2 Pino Toscano 2007-07-29 15:54:31 UTC
*** Bug 148325 has been marked as a duplicate of this bug. ***
Comment 3 Nick Warne 2007-07-29 16:30:52 UTC
Sorry, I missed this one when rasing my bug report.

I can confirm the patch from Olivier fixes it for me.

Thanks,

Nick
Comment 4 Otto Bruggeman 2009-02-24 02:23:05 UTC
SVN commit 930685 by bruggie:

BUG:139212 Yes copy and paste error...

 M  +2 -2      diffmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930685
Comment 5 Kevin Kofler 2009-02-24 03:05:38 UTC
SVN commit 930701 by kkofler:

Yes copy and paste error...
backport revision 930685 by bruggie from trunk
CCBUG: 139212

 M  +2 -2      diffmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930701