InsetInfo::InsetInfo(Buffer * buf, string const & name)
: InsetCollapsible(buf), initialized_(false),
- type_(UNKNOWN_INFO), name_()
+ type_(UNKNOWN_INFO), name_(), force_ltr_(false)
{
setInfo(name);
status_ = Collapsed;
bool InsetInfo::forceLTR() const
{
- return !buffer().params().language->rightToLeft();
+ return !buffer().params().language->rightToLeft() || force_ltr_;
}
BufferParams const & bp = buffer().params();
+ force_ltr_ = false;
switch (type_) {
case UNKNOWN_INFO:
error("Unknown Info: %1$s");
setText(bindings.begin()->print(KeySequence::Portable));
else
setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable));
+ force_ltr_ = true;
break;
}
case LYXRC_INFO: {