Kaydet (Commit) 0c998c46 authored tarafından Noel Power's avatar Noel Power

some very minor tweak(s) to "Improvment-of-Custom-Sheet-Prefix-Option"

a) allow blank default prefix
b) select the entire last good prefix is some illegal character used
üst afeb347c
...@@ -127,10 +127,12 @@ void ScTpDefaultsOptions::CheckPrefix(Edit* pEdit) ...@@ -127,10 +127,12 @@ void ScTpDefaultsOptions::CheckPrefix(Edit* pEdit)
OUString aSheetPrefix = pEdit->GetText(); OUString aSheetPrefix = pEdit->GetText();
if ( !ScDocument::ValidTabName( aSheetPrefix ) ) if ( !aSheetPrefix.isEmpty() && !ScDocument::ValidTabName( aSheetPrefix ) )
{ {
// Revert to last good Prefix // Revert to last good Prefix and also select it to
pEdit->SetText( maOldPrefixValue ); // indicate something illegal was typed
Selection aSel( 0, maOldPrefixValue.getLength() );
pEdit->SetText( maOldPrefixValue, aSel );
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment