From f824c83842c641f972a1e506122b1f4f8f6ed689 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 26 Mar 2013 18:05:47 +0100 Subject: [PATCH] Pcbnew: fix an issue when texts in footprints have a size = 60 mils (default size for texts). After saving and reading the .kicad_pcb file, the size was not correct. --- pcbnew/class_text_mod.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/class_text_mod.cpp b/pcbnew/class_text_mod.cpp index 419a779faf..bbcacd4f8b 100644 --- a/pcbnew/class_text_mod.cpp +++ b/pcbnew/class_text_mod.cpp @@ -61,8 +61,9 @@ TEXTE_MODULE::TEXTE_MODULE( MODULE* parent, int text_type ) : m_Type = TEXT_is_DIVERS; m_NoShow = false; - m_Size.x = m_Size.y = 400; - m_Thickness = 120; /* Set default dimension to a reasonable value. */ + + // Set text tickness to a default value + m_Thickness = Millimeter2iu( 0.15 ); SetLayer( SILKSCREEN_N_FRONT );