Skip to content

Commit 492a358

Browse files
committed
fixed syntax error in latex wrongly detected as failure to access latex executable (�#2534)
1 parent 5a7b5a4 commit 492a358

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ct/ct_image.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,8 @@ static const char* get_dvipng_bin_cmd()
410410
const fs::path tmp_filepath_dvi = tmp_filepath_noext + "dvi";
411411
if (not success or not fs::is_regular_file(tmp_filepath_dvi)) {
412412
if (success) spdlog::debug("!! cmd '{}' ok but missing {}", cmd, tmp_filepath_dvi.c_str());
413-
_renderingBinariesLatexOk = false;
414413
// fallback
415-
return pCtMainWin->get_icon_theme()->load_icon("ct_warning", 48);
414+
return pCtMainWin->get_icon_theme()->load_icon("ct_bug", 48);
416415
}
417416
const fs::path tmp_filepath_png = tmp_filepath_noext + "png";
418417
const int latexSizeDpi = zoom * pCtMainWin->get_ct_config()->latexSizeDpi;

0 commit comments

Comments
 (0)