Skip to content

Commit

Permalink
fix crash when latex generator is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Oct 23, 2022
1 parent 4dfe5c7 commit 176dfcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control/latex/LatexGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ auto LatexGenerator::asyncRun(const fs::path& texDir, const std::string& texFile
FS(_F("Failed to find LaTeX generator program in PATH: {1}\n\nSince installation is detected "
"within Flatpak, you need to install the Flatpak freedesktop Tex Live extension. For "
"example, by running:\n\n$ flatpak install flathub org.freedesktop.Sdk.Extension.texlive") %
prog)};
argv[0])};
} else {
res = GenError{FS(_F("Failed to find LaTeX generator program in PATH: {1}") % prog)};
res = GenError{FS(_F("Failed to find LaTeX generator program in PATH: {1}") % argv[0])};
}

g_strfreev(argv);
Expand Down

0 comments on commit 176dfcd

Please sign in to comment.