X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServer.cpp;h=b89e834f20408275b6200ec6de2a3b9ff1367fef;hb=32b65a8ee5ad6d5264011b66771a6ed91633ba3d;hp=1a66682bc40f9e95db5cfc851fd38bb78457b299;hpb=b917c4e40f9f5cd3d101444600eddafcca54d6e3;p=lyx.git diff --git a/src/Server.cpp b/src/Server.cpp index 1a66682bc4..b89e834f20 100644 --- a/src/Server.cpp +++ b/src/Server.cpp @@ -58,6 +58,8 @@ #include "support/bind.h" +#include + #ifdef _WIN32 #include #include @@ -1173,7 +1175,7 @@ void Server::callback(string const & msg) // connect to the lyxfunc in the single GuiView we // support currently. (Lgb) - FuncRequest fr(lyxaction.lookupFunc(cmd), arg); + FuncRequest fr(lyxaction.lookupFunc(cmd), from_ascii(arg)); fr.setOrigin(FuncRequest::LYXSERVER); DispatchResult dr; theApp()->dispatch(fr, dr);