X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlERT.C;h=52f1ea1dd044ba08207ab7c8810f9d8ca02390c5;hb=98ebb778411f39db1d144234b5b8bb944c3c05b2;hp=f5ff71a7626cbc33e483572e6de1d64afbbb911b;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/frontends/controllers/ControlERT.C b/src/frontends/controllers/ControlERT.C index f5ff71a762..52f1ea1dd0 100644 --- a/src/frontends/controllers/ControlERT.C +++ b/src/frontends/controllers/ControlERT.C @@ -1,5 +1,5 @@ /** - * \file ControlERT.C + * \file ControlERT.cpp * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -15,6 +15,11 @@ #include "funcrequest.h" +using std::string; + +namespace lyx { +namespace frontend { + ControlERT::ControlERT(Dialog & parent) : Dialog::Controller(parent), status_(InsetERT::Collapsed) {} @@ -36,5 +41,8 @@ void ControlERT::clearParams() void ControlERT::dispatchParams() { string const lfun = InsetERTMailer::params2string(status_); - kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun)); + kernel().dispatch(FuncRequest(getLfun(), lfun)); } + +} // namespace frontend +} // namespace lyx