From fdaf7d3a497c72ee67510d2cf71f1ab7cb96fbb9 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 12 Sep 2024 09:00:05 +0800 Subject: [PATCH] - fix: astyle path error when reformat. --- NEWS.md | 1 + RedPandaIDE/settings.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 6fc0edc1..b2741da8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ Red Panda C++ Version 3.2 - fix: Scroll bar arrow size not correct in the dark themes. - fix: Don't auto scroll to the caret after undo/redo. - fix: "bits/stdc++" is not openned in readonly mode. + - fix: astyle path error when reformat. Red Panda C++ Version 3.1 diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index 36965a2e..9b9bbcfd 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -3882,7 +3882,7 @@ QString Settings::Environment::AStylePath() const { QString path = mAStylePath; if (path.isEmpty()) - path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"astyle"; + path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+ASTYLE_PROGRAM; else path = replacePrefix(path, "%*APP_DIR*%", pSettings->dirs().appDir()); return path;