mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 20:09:59 +00:00
* Paragraph.cpp (latexSurrogatePair):
- do not use braces for combinated characters that are natively output (as unicode glyphs) (fixes part of bug 4946) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25347 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d6f5d4f225
commit
49e4763f6b
@ -499,7 +499,12 @@ int Paragraph::Private::latexSurrogatePair(odocstream & os, char_type c,
|
||||
// Is this correct WRT change tracking?
|
||||
docstring const latex1 = encoding.latexChar(next);
|
||||
docstring const latex2 = encoding.latexChar(c);
|
||||
os << latex1 << '{' << latex2 << '}';
|
||||
if (docstring(1, next) == latex1) {
|
||||
// the encoding supports the combination
|
||||
os << latex2 << latex1;
|
||||
return latex1.length() + latex2.length();
|
||||
} else
|
||||
os << latex1 << '{' << latex2 << '}';
|
||||
return latex1.length() + latex2.length() + 2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user