* 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:
André Pönitz 2003-06-30 09:10:49 +00:00
parent 1a8665988f
commit 16b7144244

View File

@ -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;
}