diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-24 21:24:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-24 23:46:11 +0100 |
commit | 924126df792915092ee6201d1f068e43ffb80b67 (patch) | |
tree | 5fa29459bed795170ccdfc5e03b91c3877e6968f /vcl | |
parent | 4721c734c1ee38eddb2b14a9b680805a4c61992b (diff) |
Pasting -- from a pdf from a fallback font doesn't give -- as output
Type -- into a writer document, on a machine without Courier installed
set that text to Courier. Export to pdf, select inside e.g. evince and
paste to a terminal. You don't get --
0x2D is mapped from unicode 0x2D and unicode 0xAD in the adobe
encoding. So the latter trumps the earlier one and <ADAD> is pasted
instead of <2D2D>.
Reverse the order that the encoding is mapped from unicode so lower
more "ascii" options are preferred over the higher more "unlikely"
unicode options
Change-Id: I8f251253fca468d269493801e668617a935ee15d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index ee9b0dfd467e..4ee03669a4fd 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -3096,7 +3096,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const Physical memset( nEncodedCodes, 0, sizeof(nEncodedCodes) ); memset( pUnicodesPerGlyph, 0, sizeof(pUnicodesPerGlyph) ); memset( pEncToUnicodeIndex, 0, sizeof(pEncToUnicodeIndex) ); - for( Ucs2SIntMap::const_iterator it = pEncoding->begin(); it != pEncoding->end(); ++it ) + for( Ucs2SIntMap::const_reverse_iterator it = pEncoding->rbegin(); it != pEncoding->rend(); ++it ) { if(it->second == -1) continue; |