Turn off escaping names for now.

Fixes: lp:1794816
* https://bugs.launchpad.net/kicad/+bug/1794816
This commit is contained in:
Jeff Young 2018-09-27 17:21:06 +01:00
parent 50b96b406f
commit 5703060d87
2 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,8 @@ static const char illegalFileNameChars[] = "\\/:\"<>|";
*/
wxString EscapeString( const wxString& aSource )
{
return aSource;
wxString converted;
for( wxUniChar c: aSource )
@ -90,6 +92,8 @@ wxString EscapeString( const wxString& aSource )
wxString UnescapeString( const wxString& aSource )
{
return aSource;
wxString converted = aSource;
converted.Replace( "&quot;", "\"" );

View File

@ -40,6 +40,7 @@
#include <sch_component.h>
#include <template_fieldnames.h>
#include <class_library.h>
#include <sch_validators.h>
#include <dialog_edit_one_field.h>
@ -101,6 +102,9 @@ DIALOG_EDIT_ONE_FIELD::DIALOG_EDIT_ONE_FIELD( SCH_BASE_FRAME* aParent, const wxS
void DIALOG_EDIT_ONE_FIELD::init()
{
SetInitialFocus( m_TextValue );
SCH_BASE_FRAME* parent = GetParent();
bool libedit = parent->IsType( FRAME_SCH_LIB_EDITOR );
m_TextValue->SetValidator( SCH_FIELD_VALIDATOR( libedit, m_fieldId, &m_text ) );
// Disable options for graphic text editing which are not needed for fields.
m_CommonConvert->Show( false );