Fix bug: printed duplicate pages when Single Page selected

https://bugs.launchpad.net/kicad/+bug/1523065
This commit is contained in:
Simon Wells 2016-05-30 11:25:40 -04:00 committed by Chris Pavlina
parent 7c1f5f617b
commit 457b021101
1 changed files with 3 additions and 0 deletions

View File

@ -298,6 +298,9 @@ int DIALOG_PRINT_USING_PRINTER::SetLayerSetFromListSelection()
s_Parameters.m_Flags = 0; s_Parameters.m_Flags = 0;
else else
s_Parameters.m_Flags = 1; s_Parameters.m_Flags = 1;
if( PrintUsingSinglePage() )
page_count = 1;
s_Parameters.m_PageCount = page_count; s_Parameters.m_PageCount = page_count;