diff --git a/eeschema/sch_pin.cpp b/eeschema/sch_pin.cpp
index f020de7c3e..09367a07fd 100644
--- a/eeschema/sch_pin.cpp
+++ b/eeschema/sch_pin.cpp
@@ -220,7 +220,7 @@ wxString SCH_PIN::GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const
     }
 
     wxString itemDesc = m_libPin ? m_libPin->GetItemDescription( aUnitsProvider, alt ) :
-                                   wxS ( "Undefined library pin." );
+                                   wxString( wxS( "Undefined library pin." ) );
     return wxString::Format( "Symbol %s %s",
                              UnescapeString( GetParentSymbol()->GetField( REFERENCE_FIELD )->GetText() ),
                              itemDesc );