Author: spitz
Date: Fri Mar  2 15:59:53 2012
New Revision: 40831
URL: http://www.lyx.org/trac/changeset/40831

Log:
Work around qt bug that prevents the glyph LATIN CAPITAL LETTER SHARP S from 
being pasted (bug #8057).

Backport of r40829.

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/support/lstrings.cpp
   lyx-devel/branches/BRANCH_2_0_X/status.20x

Modified: lyx-devel/branches/BRANCH_2_0_X/src/support/lstrings.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/support/lstrings.cpp    Fri Mar  2 
11:20:09 2012        (r40830)
+++ lyx-devel/branches/BRANCH_2_0_X/src/support/lstrings.cpp    Fri Mar  2 
15:59:53 2012        (r40831)
@@ -116,6 +116,11 @@
                // assume that all non-utf16 characters are printable
                return true;
        }
+       // Not yet recognized by QChar::isPrint()
+       // See https://bugreports.qt-project.org/browse/QTBUG-12144
+       // LATIN CAPITAL LETTER SHARP S
+       else if (c == 0x1e9e)
+               return true;
        return ucs4_to_qchar(c).isPrint();
 }
 

Modified: lyx-devel/branches/BRANCH_2_0_X/status.20x
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/status.20x  Fri Mar  2 11:20:09 2012        
(r40830)
+++ lyx-devel/branches/BRANCH_2_0_X/status.20x  Fri Mar  2 15:59:53 2012        
(r40831)
@@ -53,7 +53,7 @@
 
 * DOCUMENT INPUT/OUTPUT
 
--
+- Fix pasting of LATIN CAPITAL LETTER SHARP S (bug 8057).
 
 
 * TEX2LYX

Reply via email to