Skip to content

Commit

Permalink
Place where dot executable is found
Browse files Browse the repository at this point in the history
In the current vhdl part of the code it is required that the dot executable is in the path. On in dot.cpp the possibility exists that the dot executable is found through the configuration setting DOT_PATH.
This patch makes this more consistent
  • Loading branch information
albert-github committed Feb 12, 2014
1 parent dc5522b commit 90ecc24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vhdldocgen.cpp
Expand Up @@ -167,7 +167,8 @@ static void createSVG()
QRegExp ep("[\\s]");
QCString vlargs="-Tsvg \""+ov+"\" "+dir ;

if (portable_system("dot",vlargs)!=0)
QCString dotExe = Config_getString("DOT_PATH")+"dot";
if (portable_system(dotExe,vlargs)!=0)
{
err("could not create dot file");
}
Expand Down Expand Up @@ -3884,8 +3885,9 @@ void FlowChart::createSVG()
ov+="/flow_design.dot";

QCString vlargs="-Tsvg "+ov+dir ;
QCString dotExe = Config_getString("DOT_PATH")+"dot";

if (portable_system("dot",vlargs)!=0)
if (portable_system(dotExe,vlargs)!=0)
{
err("could not create dot file");
}
Expand Down

0 comments on commit 90ecc24

Please sign in to comment.