]> git.lyx.org Git - lyx.git/blobdiff - src/Format.cpp
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / Format.cpp
index bf3102653c37658c838c6e67704d33f4d936a07f..eba00b95dfd3190a69eceac619c2d1cb93a9afd3 100644 (file)
@@ -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;