mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Handle null pointer
This commit is contained in:
parent
9c47267e24
commit
057d83d8ae
@ -191,9 +191,12 @@ docstring const Font::stateText(BufferParams * params) const
|
||||
{
|
||||
odocstringstream os;
|
||||
os << lyx::stateText(bits_);
|
||||
if (!params || (language() != params->language))
|
||||
if (!params || (language() != params->language)) {
|
||||
// reset_language is a null pointer!
|
||||
os << bformat(_("Language: %1$s, "),
|
||||
_(language()->display()));
|
||||
(language() == reset_language) ? _("Default")
|
||||
: _(language()->display()));
|
||||
}
|
||||
if (bits_.number() != FONT_OFF)
|
||||
os << " " << bformat(_("Number %1$s"),
|
||||
_(GUIMiscNames[bits_.number()]));
|
||||
|
Loading…
Reference in New Issue
Block a user