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