Browse Source

Recognize ' ', '}', ')' as terminators of overbar in conversion

Fixes bug 3 in https://gitlab.com/kicad/code/kicad/-/issues/8591.
6.0.7
Mikolaj Wielgus 5 years ago
committed by Jeff Young
parent
commit
9a42ec753f
  1. 8
      common/string.cpp

8
common/string.cpp

@ -34,7 +34,7 @@
/**
* Illegal file name characters used to insure file names will be valid on all supported
* Illegal file name characters used to ensure file names will be valid on all supported
* platforms. This is the list of illegal file name characters for Windows which includes
* the illegal file name characters for Linux and OSX.
*/
@ -86,6 +86,12 @@ wxString ConvertToNewOverbarNotation( const wxString& aOldStr )
continue;
}
}
else if( ( *chIt == ' ' || *chIt == '}' || *chIt == ')' ) && inOverbar )
{
// Spaces were used to terminate overbar as well
newStr << "}";
inOverbar = false;
}
newStr << *chIt;
}

Loading…
Cancel
Save