From 2ca45124432a2835c9efb50490be0a62a0c85966 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 15 Oct 2012 19:55:04 +0200 Subject: [PATCH] Kicad manager: project_template.cpp: accepts lower and upper case HTML keywords (compatibility with libreoffice) --- kicad/project_template.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kicad/project_template.cpp b/kicad/project_template.cpp index 99d0c85992..2e6de3e872 100644 --- a/kicad/project_template.cpp +++ b/kicad/project_template.cpp @@ -173,8 +173,14 @@ wxString* PROJECT_TEMPLATE::GetTitle(void) while( input.IsOk() && !input.Eof() && !done ) { wxString line = text.ReadLine(); + start = line.Find( wxT( "" ) ); + if( start == wxNOT_FOUND ) + start = line.Find( wxT( "<TITLE>" ) ); + finish = line.Find( wxT( "" ) ); + if( finish == wxNOT_FOUND ) + finish = line.Find( wxT( "" ) ); // find the opening tag if( start != wxNOT_FOUND )