X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFormat.cpp;h=eba00b95dfd3190a69eceac619c2d1cb93a9afd3;hb=45e3a8f82701e981b1ccb2ab8d76f269867d7889;hp=bf3102653c37658c838c6e67704d33f4d936a07f;hpb=a180414975f45dc3387d6ca71912509fbb03e3e5;p=lyx.git diff --git a/src/Format.cpp b/src/Format.cpp index bf3102653c..eba00b95df 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -716,7 +716,8 @@ bool Formats::view(Buffer const & buffer, FileName const & filename, PathChanger p(filename.onlyPath()); Systemcall one; - one.startscript(Systemcall::DontWait, command, buffer.filePath()); + one.startscript(Systemcall::DontWait, command, + buffer.filePath(), buffer.layoutPos()); // we can't report any sort of error, since we aren't waiting return true; @@ -785,7 +786,8 @@ bool Formats::edit(Buffer const & buffer, FileName const & filename, buffer.message(_("Executing command: ") + from_utf8(command)); Systemcall one; - one.startscript(Systemcall::DontWait, command, buffer.filePath()); + one.startscript(Systemcall::DontWait, command, + buffer.filePath(), buffer.layoutPos()); // we can't report any sort of error, since we aren't waiting return true;