mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
GuiSymbols: show all symbols when UseNonTeXFonts
This commit is contained in:
parent
6f07721187
commit
3a73b822a5
@ -15,6 +15,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "Buffer.h"
|
||||
#include "BufferParams.h"
|
||||
#include "BufferView.h"
|
||||
#include "CoordCache.h"
|
||||
#include "Cursor.h"
|
||||
@ -2066,10 +2067,14 @@ Encoding const * Cursor::getEncoding() const
|
||||
{
|
||||
if (empty())
|
||||
return 0;
|
||||
BufferParams const & bp = bv().buffer().params();
|
||||
if (bp.useNonTeXFonts)
|
||||
return encodings.fromLyXName("utf8-plain");
|
||||
|
||||
CursorSlice const & sl = innerTextSlice();
|
||||
Text const & text = *sl.text();
|
||||
Font font = text.getPar(sl.pit()).getFont(
|
||||
bv().buffer().params(), sl.pos(), text.outerFont(sl.pit()));
|
||||
Font font = text.getPar(sl.pit()).getFont(bp, sl.pos(),
|
||||
text.outerFont(sl.pit()));
|
||||
return font.language()->encoding();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user