Fix splitting of layout string

This commit is contained in:
Juergen Spitzmueller 2012-11-24 16:46:44 +01:00
parent bdaca8a41d
commit 4b4e9560d1

View File

@ -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");