mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 08:44:01 +00:00
Fix InsetBibitem::clone.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23359 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
991154992f
commit
7b09292cb0
@ -60,14 +60,6 @@ ParamInfo const & InsetBibitem::findInfo(string const & /* cmdName */)
|
||||
}
|
||||
|
||||
|
||||
Inset * InsetBibitem::clone() const
|
||||
{
|
||||
InsetBibitem * b = new InsetBibitem(params());
|
||||
b->autolabel_ = autolabel_;
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
switch (cmd.action) {
|
||||
|
@ -56,7 +56,7 @@ protected:
|
||||
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
|
||||
private:
|
||||
///
|
||||
virtual Inset * clone() const;
|
||||
virtual Inset * clone() const { return new InsetBibitem(*this); }
|
||||
/// The label that is set by updateLabels
|
||||
docstring autolabel_;
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user