components/gnome/evince/patches/evince-05-remove-newline.patch
changeset 6408 3c9262a98d5d
parent 6407 233620acc9da
child 6409 a57c61602ca6
equal deleted inserted replaced
6407:233620acc9da 6408:3c9262a98d5d
     1 Patch taken from the Desktop consolidation.
       
     2 See BugDB CR #15768012
       
     3 SUNBT7132463-SOLARIS_11U1 [evince] garbled character is pasted when copy&paste t
       
     4 for more details.
       
     5 
       
     6 This patch will be sent upstream if the problem still exists in the latest
       
     7 version of evince.
       
     8 
       
     9 diff -urN evince-2.30.3/backend/pdf/ev-poppler.cc ../SUNWgnome-pdf-viewer-2.30.3.hacked/evince-2.30.3/backend/pdf/ev-poppler.cc
       
    10 --- evince-2.30.3/backend/pdf/ev-poppler.cc	2010-06-24 09:19:28.000000000 +0100
       
    11 +++ ../SUNWgnome-pdf-viewer-2.30.3.hacked/evince-2.30.3/backend/pdf/ev-poppler.cc	2012-02-27 20:58:49.148832384 +0000
       
    12 @@ -1990,6 +1990,8 @@
       
    13  					(PopplerSelectionStyle)style,
       
    14  					&r);
       
    15  
       
    16 +	if (retval[strlen(retval)-1] == '\n')
       
    17 +	  	retval[strlen(retval)-1] = '\0';
       
    18  	return retval;
       
    19  }
       
    20