Prevent attempt at plotting invalid sheets

If the number does not exist in the schematic, don't attempt plotting

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19039
This commit is contained in:
Seth Hillbrand
2024-11-01 10:55:54 -07:00
parent 3b0ae838fe
commit 88df35654e
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -1110,7 +1110,9 @@ int PDF_PLOTTER::emitOutline()
bool PDF_PLOTTER::EndPlot()
{
wxASSERT( m_outputFile );
// We can end up here if there was nothing to plot
if( !m_outputFile )
return false;
// Close the current page (often the only one)
ClosePage();