mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix splitting of layout string
This commit is contained in:
parent
bdaca8a41d
commit
4b4e9560d1
@ -95,9 +95,10 @@ void InsetArgument::updateBuffer(ParIterator const & it, UpdateType utype)
|
||||
Layout::LaTeXArgMap::const_iterator const lait =
|
||||
args.find(convert<unsigned int>(name_));
|
||||
if (lait != args.end()) {
|
||||
docstring label;
|
||||
support::rsplit(translateIfPossible((*lait).second.labelstring), label, '|');
|
||||
labelstring_ = label;
|
||||
docstring label = translateIfPossible((*lait).second.labelstring);
|
||||
docstring striplabel;
|
||||
support::rsplit(label, striplabel, '|');
|
||||
labelstring_ = striplabel.empty() ? label: striplabel;
|
||||
tooltip_ = translateIfPossible((*lait).second.tooltip);
|
||||
} else {
|
||||
labelstring_ = _("Unknown Argument");
|
||||
|
Loading…
Reference in New Issue
Block a user