mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Force local switch for info insets that change language
Fixes compilation of current English UG
This commit is contained in:
parent
4fc6b5f37c
commit
261625f412
@ -749,6 +749,14 @@ bool InsetInfo::forceLTR(OutputParams const &) const
|
||||
}
|
||||
|
||||
|
||||
bool InsetInfo::forceLocalFontSwitch() const
|
||||
{
|
||||
return params_.type == InsetInfoParams::MENU_INFO
|
||||
|| params_.type == InsetInfoParams::SHORTCUTS_INFO
|
||||
|| params_.type == InsetInfoParams::L7N_INFO;
|
||||
}
|
||||
|
||||
|
||||
void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted) {
|
||||
// If the Buffer is a clone, then we neither need nor want to do any
|
||||
// of what follows. We want, rather, just to inherit how things were
|
||||
|
@ -198,6 +198,8 @@ public:
|
||||
/// Force inset into LTR environment if surroundings are RTL
|
||||
bool forceLTR(OutputParams const &) const;
|
||||
///
|
||||
bool forceLocalFontSwitch() const;
|
||||
///
|
||||
void setInfo(std::string const & info);
|
||||
///
|
||||
void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
|
||||
|
Loading…
Reference in New Issue
Block a user