mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Indentation fixes
This commit is contained in:
parent
59fa0b2592
commit
4fd4310ea7
@ -745,8 +745,7 @@ Encoding const * DocIterator::getEncoding() const
|
||||
CursorSlice const & sl = innerTextSlice();
|
||||
Text const & text = *sl.text();
|
||||
Language const * lang =
|
||||
text.getPar(sl.pit()).getFont(bp, sl.pos(),
|
||||
text.outerFont(sl.pit())).language();
|
||||
text.getPar(sl.pit()).getFont(bp, sl.pos(), text.outerFont(sl.pit())).language();
|
||||
// If we have a custom encoding for the buffer, we don't switch
|
||||
// encodings (see output_latex::switchEncoding())
|
||||
bool const customenc = bp.inputenc != "auto-legacy" && bp.inputenc != "auto-legacy-plain";
|
||||
@ -781,8 +780,7 @@ Encoding const * DocIterator::getEncoding() const
|
||||
otext.outerFont(slices_[i].pit())).language();
|
||||
// Again, if we have a custom encoding, this is used
|
||||
// instead of the language's.
|
||||
Encoding const * oenc = customenc
|
||||
? &bp.encoding() : olang->encoding();
|
||||
Encoding const * oenc = customenc ? &bp.encoding() : olang->encoding();
|
||||
if (olang->encoding()->name() != "inherit")
|
||||
return oenc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user