pcbnew, gerbview: print&plot: error message displayed when no layer selected.

This commit is contained in:
charras
2009-03-10 08:26:52 +00:00
parent 6cdf7e836f
commit 6431e9c94d
7 changed files with 1020 additions and 181 deletions
+5
View File
@@ -732,6 +732,11 @@ void WinEDA_PlotFrame::Plot( wxCommandEvent& event )
}
}
// If no layer selected, we have no plot. prompt user if it happens
// because he could think there is a bug in pcbnew:
if ( s_SelectedLayers == 0 )
DisplayError( this, _("No layer selected") );
// Close(true);
}