Skip to content
Snippets Groups Projects
Commit 418343b7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

minor corr

parent 61aa0294
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,7 @@ bool frida_command(string cmd)
" gd graphic dialog (feed commands to gnuplot)\n"
"Save for print:\n"
" gp plot to complete .ps file\n"
" gf plot to short .psX file\n"
" gf plot to short .psa file\n"
" gfa append plot to existing .ps or .psa file\n"
"Change window:\n"
" gw list of plot windows\n"
......
......@@ -183,7 +183,7 @@ void NImport::read_tab(string qualif)
if (dat.size() != (with_d ? 3 : 2)) {
throw "line " + S(n_in) + " (line " + S(nline) + " in block " + S(nblock)
+ ") [" + lin + "] contains " + S(dat.size()) + " values; "
+ "at present, exactly " + S(with_d ? 3 : 2) + " are required";
+ " exactly " + S(with_d ? 3 : 2) + " are required";
}
if (with_d)
s->push_xy(dat[0], dat[1]);
......
......@@ -341,7 +341,7 @@ void CPlot::write_postscript(
if (!triv::file_exists(fname))
throw "BUG: after copying headers, graphic output file " + fname + " still doesn't exist";
if (!(pssav = fopen(fname.c_str(), mode=="append" ? "a" : "w")))
throw "cannot append contents to file " + fname;
throw "BUG: cannot open file " + fname;
for (string lin : ps_accu) {
// fprintf does not work here because output line may contain "%"
fwrite(lin.c_str(), 1, lin.size(), pssav);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment