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;