From b907f79485e6a326cedf56fc6c8cf03c9d4eb79c Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Wed, 21 Oct 2020 13:23:06 +0200 Subject: [PATCH] python wrap: fix undefined FILLED/SKETCH constants in pcbnew.py Fixes #6070 https://gitlab.com/kicad/code/kicad/issues/6070 --- common/swig/kicad.i | 2 ++ include/outline_mode.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/swig/kicad.i b/common/swig/kicad.i index 6ac3f00442..a205a5b10f 100644 --- a/common/swig/kicad.i +++ b/common/swig/kicad.i @@ -80,6 +80,7 @@ principle should be easily implemented by adapting the current STL containers. // headers/imports that must be included in the _wrapper.cpp at top %{ + #include <outline_mode.h> #include <macros.h> #include <cstddef> #include <eda_item.h> @@ -107,6 +108,7 @@ principle should be easily implemented by adapting the current STL containers. %ignore GetNewConfig; // header files that must be wrapped +%include <outline_mode.h> %include macros.h %include core/typeinfo.h %include eda_item.h diff --git a/include/outline_mode.h b/include/outline_mode.h index e84a29f111..961f535f58 100644 --- a/include/outline_mode.h +++ b/include/outline_mode.h @@ -23,8 +23,8 @@ /* Options to draw items with thickness ( segments, arcs, circles, texts...) */ enum OUTLINE_MODE { - SKETCH = 0, // sketch mode: draw segments outlines only - FILLED = 1 // normal mode: solid segments + SKETCH = 0, // sketch mode: draw segments outlines only + FILLED = 1 // normal mode: solid segments }; #endif \ No newline at end of file