kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #10252
Re: Title block date in pcbnew
>
> You will have to find the code where the date is automatically updated, and comment it or
> remove it.
Lorenzo,
The attached patch reminds you of the m_date test at top of *if* block.
This, plus the dialog work, plus the m_date automatic setting removal should get 'er done.
Dick
=== modified file 'common/worksheet.cpp'
--- common/worksheet.cpp 2013-03-27 20:38:20 +0000
+++ common/worksheet.cpp 2013-05-01 19:59:49 +0000
@@ -1935,7 +1935,7 @@
throw( IO_ERROR )
{
// Don't write the title block information if there is nothing to write.
- if( !m_title.IsEmpty() || /* !m_date.IsEmpty() || */ !m_revision.IsEmpty()
+ if( !m_title.IsEmpty() || !m_date.IsEmpty() || !m_revision.IsEmpty()
|| !m_company.IsEmpty() || !m_comment1.IsEmpty() || !m_comment2.IsEmpty()
|| !m_comment3.IsEmpty() || !m_comment4.IsEmpty() )
{
@@ -1945,11 +1945,9 @@
aFormatter->Print( aNestLevel+1, "(title %s)\n",
aFormatter->Quotew( m_title ).c_str() );
- /* version control users were complaining, see mailing list.
if( !m_date.IsEmpty() )
aFormatter->Print( aNestLevel+1, "(date %s)\n",
aFormatter->Quotew( m_date ).c_str() );
- */
if( !m_revision.IsEmpty() )
aFormatter->Print( aNestLevel+1, "(rev %s)\n",
References