]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlTabularCreate.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / ControlTabularCreate.C
index c51a9abd17359761c46dc87736029cebb62dd380..e7bd1e430b44d6114a9694aa1b71c4a2279e4e84 100644 (file)
@@ -13,7 +13,7 @@
 #include "ControlTabularCreate.h"
 #include "funcrequest.h"
 
-#include "support/tostr.h"
+#include "support/convert.h"
 
 
 using std::string;
@@ -43,8 +43,8 @@ void ControlTabularCreate::clearParams()
 
 void ControlTabularCreate::dispatchParams()
 {
-       string data = tostr(params().first) + ' ' + tostr(params().second);
-       kernel().dispatch(FuncRequest(LFUN_TABULAR_INSERT, data));
+       string const data = convert<string>(params().first) + ' ' + convert<string>(params().second);
+       kernel().dispatch(FuncRequest(getLfun(), data));
 }
 
 } // namespace frontend