woah, that's very not right

This commit is contained in:
Caolán McNamara 2011-10-05 22:55:39 +01:00
parent 5cb1597064
commit 2f632a0b39

View file

@ -163,8 +163,9 @@ Color ScfTools::GetMixedColor( const Color& rFore, const Color& rBack, sal_uInt8
void ScfTools::ConvertToScDefinedName( String& rName )
{
sal_Char a('.');
rName.SearchAndReplaceAllAscii(&a,'_'); //fdo#37872: we don't allow points in range names any more
//fdo#37872: we don't allow points in range names any more
rName.SearchAndReplaceAll(static_cast<sal_Unicode>('.'),
static_cast<sal_Unicode>('_'));
xub_StrLen nLen = rName.Len();
if( nLen && !ScCompiler::IsCharFlagAllConventions( rName, 0, SC_COMPILER_C_CHAR_NAME ) )
rName.SetChar( 0, '_' );