- fix: astyle path error when reformat.
This commit is contained in:
parent
c796208840
commit
fdaf7d3a49
1
NEWS.md
1
NEWS.md
|
@ -4,6 +4,7 @@ Red Panda C++ Version 3.2
|
||||||
- fix: Scroll bar arrow size not correct in the dark themes.
|
- fix: Scroll bar arrow size not correct in the dark themes.
|
||||||
- fix: Don't auto scroll to the caret after undo/redo.
|
- fix: Don't auto scroll to the caret after undo/redo.
|
||||||
- fix: "bits/stdc++" is not openned in readonly mode.
|
- fix: "bits/stdc++" is not openned in readonly mode.
|
||||||
|
- fix: astyle path error when reformat.
|
||||||
|
|
||||||
Red Panda C++ Version 3.1
|
Red Panda C++ Version 3.1
|
||||||
|
|
||||||
|
|
|
@ -3882,7 +3882,7 @@ QString Settings::Environment::AStylePath() const
|
||||||
{
|
{
|
||||||
QString path = mAStylePath;
|
QString path = mAStylePath;
|
||||||
if (path.isEmpty())
|
if (path.isEmpty())
|
||||||
path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"astyle";
|
path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+ASTYLE_PROGRAM;
|
||||||
else
|
else
|
||||||
path = replacePrefix(path, "%*APP_DIR*%", pSettings->dirs().appDir());
|
path = replacePrefix(path, "%*APP_DIR*%", pSettings->dirs().appDir());
|
||||||
return path;
|
return path;
|
||||||
|
|
Loading…
Reference in New Issue