GuiSymbols: show all symbols when UseNonTeXFonts

This commit is contained in:
Guillaume Munch 2016-12-03 23:35:15 +01:00
parent 6f07721187
commit 3a73b822a5

View File

@ -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();
}