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

don't try to plot if gp_fnames is empty

parent 4dfd77e0
No related branches found
No related tags found
No related merge requests found
......@@ -460,11 +460,11 @@ void CPlot::addScan( bool as_line, int style_no,
void CPlot::showScans()
{
string cmd = "plot " +
str( format( "[%12.8g:%12.8g] [%12.8g:%12.8g] " )
% X.inf % X.sup % Y.inf % Y.sup ) +
gp_fnames;
gp_write( cmd );
if ( gp_fnames!="" )
gp_write( "plot " +
str( format( "[%12.8g:%12.8g] [%12.8g:%12.8g] " )
% X.inf % X.sup % Y.inf % Y.sup ) +
gp_fnames );
}
//! Add documentation lines to postscript output.
......
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