Gerbview allows larger DCodes values (previously DCode id number max 999, now 10000)

This is not the DCodes max count but the DCode id (like in %ADD20C,0.05*%: the id is 20)
This commit is contained in:
jean-pierre charras 2019-09-15 13:30:56 +02:00
parent 0ecf5dea86
commit 937b5bd69a
2 changed files with 4 additions and 3 deletions

View File

@ -66,10 +66,10 @@ enum APERTURE_DEF_HOLETYPE {
}; };
/* define min and max values for D Codes values. /* define min and max values for D Codes values.
* note: values >= 0 and > FIRST_DCODE can be used for special purposes * note: values >= 0 and < FIRST_DCODE can be used for special purposes
*/ */
#define FIRST_DCODE 10 #define FIRST_DCODE 10
#define LAST_DCODE 999 #define LAST_DCODE 10000
#define TOOLS_MAX_COUNT (LAST_DCODE + 1) #define TOOLS_MAX_COUNT (LAST_DCODE + 1)
struct APERTURE_MACRO; struct APERTURE_MACRO;

View File

@ -106,7 +106,8 @@ private:
*/ */
class GERBER_FILE_IMAGE : public EDA_ITEM class GERBER_FILE_IMAGE : public EDA_ITEM
{ {
D_CODE* m_Aperture_List[TOOLS_MAX_COUNT]; ///< Dcode (Aperture) List for this layer (max 999) D_CODE* m_Aperture_List[TOOLS_MAX_COUNT]; ///< Dcode (Aperture) List for this layer
///< (max TOOLS_MAX_COUNT: see dcode.h)
bool m_Exposure; ///< whether an aperture macro tool is flashed on or off bool m_Exposure; ///< whether an aperture macro tool is flashed on or off
GERBER_LAYER m_GBRLayerParams; // hold params for the current gerber layer GERBER_LAYER m_GBRLayerParams; // hold params for the current gerber layer