mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14: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.
|
||||
setLoadingBuffer(cmd.view()->buffer(), false);
|
||||
InsetCommandMailer("citation", *this).showDialog(cmd.view());
|
||||
break;
|
||||
return DISPATCHED;
|
||||
|
||||
default:
|
||||
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
|
||||
{
|
||||
string label;
|
||||
|
||||
if (cache.params == params() && cache.style == getStyle(buffer))
|
||||
label = cache.generated_label;
|
||||
os << cache.generated_label;
|
||||
else
|
||||
label = generateLabel(buffer);
|
||||
|
||||
os << label;
|
||||
os << generateLabel(buffer);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user