mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
* insetcite.C (localDispatch): fix case of missing return value
* insetcite.C (ascii): remove unneeded temporary git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7220 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a8665988f
commit
16b7144244
@ -331,7 +331,7 @@ dispatch_result InsetCitation::localDispatch(FuncRequest const & cmd)
|
|||||||
// buffer but doing some real work.
|
// buffer but doing some real work.
|
||||||
setLoadingBuffer(cmd.view()->buffer(), false);
|
setLoadingBuffer(cmd.view()->buffer(), false);
|
||||||
InsetCommandMailer("citation", *this).showDialog(cmd.view());
|
InsetCommandMailer("citation", *this).showDialog(cmd.view());
|
||||||
break;
|
return DISPATCHED;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return InsetCommand::localDispatch(cmd);
|
return InsetCommand::localDispatch(cmd);
|
||||||
@ -341,14 +341,10 @@ dispatch_result InsetCitation::localDispatch(FuncRequest const & cmd)
|
|||||||
|
|
||||||
int InsetCitation::ascii(Buffer const * buffer, ostream & os, int) const
|
int InsetCitation::ascii(Buffer const * buffer, ostream & os, int) const
|
||||||
{
|
{
|
||||||
string label;
|
|
||||||
|
|
||||||
if (cache.params == params() && cache.style == getStyle(buffer))
|
if (cache.params == params() && cache.style == getStyle(buffer))
|
||||||
label = cache.generated_label;
|
os << cache.generated_label;
|
||||||
else
|
else
|
||||||
label = generateLabel(buffer);
|
os << generateLabel(buffer);
|
||||||
|
|
||||||
os << label;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user