mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
Force a paragraph update after lyxserver communication (part of bug #6871)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37851 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b8836fcd19
commit
299745b635
@ -1175,6 +1175,7 @@ void Server::callback(string const & msg)
|
||||
FuncRequest const fr(lyxaction.lookupFunc(cmd), arg);
|
||||
DispatchResult dr;
|
||||
theApp()->dispatch(fr, dr);
|
||||
theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
|
||||
string const rval = to_utf8(dr.message());
|
||||
|
||||
// all commands produce an INFO or ERROR message
|
||||
|
@ -143,6 +143,7 @@ void ServerSocket::dataCallback(int fd)
|
||||
string const cmd = line.substr(pos + 1);
|
||||
DispatchResult dr;
|
||||
theApp()->dispatch(lyxaction.lookupFunc(cmd), dr);
|
||||
theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE));
|
||||
string const rval = to_utf8(dr.message());
|
||||
if (dr.error())
|
||||
client->writeln("ERROR:" + cmd + ':' + rval);
|
||||
|
Loading…
Reference in New Issue
Block a user