From 11e5d288b8069bb751fd2df25486f60558b0974d Mon Sep 17 00:00:00 2001 From: CHARRAS Date: Thu, 6 Dec 2007 19:55:31 +0000 Subject: [PATCH] solved bug when loading a footprint in modedit: invisible text attribute was lost (trunk and tag) --- change_log.txt | 6 +++++- pcbnew/modedit.cpp | 6 ++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/change_log.txt b/change_log.txt index 9c963c667b..3488297b01 100644 --- a/change_log.txt +++ b/change_log.txt @@ -8,8 +8,12 @@ email address. 2007-Dec-06 UPDATE Jean-Pierre Charras ================================================================================ - Solved zoom key command problems (under linux and windows) ++all + Solved zoom key command problems (under linux and windows) (seen http://sourceforge.net/tracker/index.php?func=detail&aid=1844960&group_id=145591&atid=762476) + ++pcbnew + solved bug when loading a footprint in modedit: invisible text attribute was lost (trunk and tag) 2007-Dec-4 UPDATE Dick Hollenbeck diff --git a/pcbnew/modedit.cpp b/pcbnew/modedit.cpp index 18dd2db526..86188d1b23 100644 --- a/pcbnew/modedit.cpp +++ b/pcbnew/modedit.cpp @@ -356,12 +356,10 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event ) TEXTE_MODULE* val = m_Pcb->m_Modules->m_Value; if( val && ref ) { - ref->m_NoShow = 0; - val->m_NoShow = 0; - ref->m_Type = 0; - val->m_Type = 1; + ref->m_Type = TEXT_is_REFERENCE; // just in case ... if( ref->m_Text.Length() == 0 ) ref->m_Text = L"Ref**"; + val->m_Type = TEXT_is_VALUE; // just in case ... if( val->m_Text.Length() == 0 ) val->m_Text = L"Val**"; }