Skip to content

Commit

Permalink
fixed syntax error in latex wrongly detected as failure to access lat…
Browse files Browse the repository at this point in the history
…ex executable (�#2534)
  • Loading branch information
giuspen committed Jun 29, 2024
1 parent 5a7b5a4 commit 492a358
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ct/ct_image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,8 @@ static const char* get_dvipng_bin_cmd()
const fs::path tmp_filepath_dvi = tmp_filepath_noext + "dvi";
if (not success or not fs::is_regular_file(tmp_filepath_dvi)) {
if (success) spdlog::debug("!! cmd '{}' ok but missing {}", cmd, tmp_filepath_dvi.c_str());
_renderingBinariesLatexOk = false;
// fallback
return pCtMainWin->get_icon_theme()->load_icon("ct_warning", 48);
return pCtMainWin->get_icon_theme()->load_icon("ct_bug", 48);
}
const fs::path tmp_filepath_png = tmp_filepath_noext + "png";
const int latexSizeDpi = zoom * pCtMainWin->get_ct_config()->latexSizeDpi;
Expand Down

0 comments on commit 492a358

Please sign in to comment.