Skip to content

Commit

Permalink
Do not run PDF viewer if report generation was unsuccessful
Browse files Browse the repository at this point in the history
  • Loading branch information
melak committed Jul 5, 2017
1 parent fa3bd09 commit b4bbc39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libmngr_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,9 @@ void libmngrFrame::OnFootprintReport(wxCommandEvent& /*event*/)
report.SetPage(format, (landscape != 0));
report.FootprintOptions(opt_description != 0, opt_padinfo != 0, opt_labels != 0);
report.SetFont(fontsize);
report.FootprintReport(this, library, modules, reportfile);
if(!report.FootprintReport(this, library, modules, reportfile)) {
return;
}
m_statusBar->SetStatusText(wxT("Finished report"));

#if wxMAJOR_VERSION < 3
Expand Down Expand Up @@ -6988,4 +6990,4 @@ void libmngrFrame::UpdateDetails(int fp)
m_chkValueLabelVisible->Enable(DefEnable);

FieldEdited = false; /* clear this flag for all implicit changes */
}
}

0 comments on commit b4bbc39

Please sign in to comment.