mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix layout names for branches.
This commit is contained in:
parent
1492e94d81
commit
28e8bf742c
@ -338,6 +338,14 @@ string InsetBranch::contextMenuName() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
docstring InsetBranch::layoutName() const
|
||||||
|
{
|
||||||
|
docstring const name = support::subst(branch(), '_', ' ');
|
||||||
|
return from_ascii("Branch:") + name;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool InsetBranch::isMacroScope() const
|
bool InsetBranch::isMacroScope() const
|
||||||
{
|
{
|
||||||
// Its own scope if not selected by buffer
|
// Its own scope if not selected by buffer
|
||||||
|
@ -114,7 +114,7 @@ private:
|
|||||||
///
|
///
|
||||||
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
|
void doDispatch(Cursor & cur, FuncRequest & cmd) override;
|
||||||
///
|
///
|
||||||
docstring layoutName() const override { return from_ascii("Branch:") + branch(); }
|
docstring layoutName() const override;
|
||||||
///
|
///
|
||||||
Inset * clone() const override { return new InsetBranch(*this); }
|
Inset * clone() const override { return new InsetBranch(*this); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user