← Back to team overview

kicad-developers team mailing list archive

[PATCH] Page settings dialog detects page format wrong

 

Dialog "Page settings" detects page format wrong (it visible by preview).
Formats A, B, C, D, E, Custom (User) are detected right but A0-A4, US*
wrong.
Attached patch fixes it.

Regards, Konstantin.
=== modified file 'common/dialogs/dialog_page_settings.cpp'
--- common/dialogs/dialog_page_settings.cpp	2014-08-13 20:28:54 +0000
+++ common/dialogs/dialog_page_settings.cpp	2014-10-16 18:53:39 +0000
@@ -725,9 +725,9 @@
 
         for( i=0;  i < DIM( papers );  ++i )
         {
-            if( paperType.Contains( *papers[i] ) )
+            if( paperType.Contains( papers[i] ) )
             {
-                pageInfo.SetType( *papers[i] );
+                pageInfo.SetType( papers[i] );
                 break;
             }
         }


Follow ups