don't show an error message for empty names in Define Names, fdo#46816
This commit is contained in:
parent
947a51f5fe
commit
6e93e78c85
1 changed files with 7 additions and 1 deletions
|
@ -167,7 +167,13 @@ bool ScNameDefDlg::IsNameValid()
|
|||
}
|
||||
|
||||
maFtInfo.SetControlBackground(GetSettings().GetStyleSettings().GetDialogColor());
|
||||
if (!ScRangeData::IsNameValid( aName, mpDoc ))
|
||||
if ( aName.isEmpty() )
|
||||
{
|
||||
maBtnAdd.Disable();
|
||||
maFtInfo.SetText(maStrInfoDefault);
|
||||
return false;
|
||||
}
|
||||
else if (!ScRangeData::IsNameValid( aName, mpDoc ))
|
||||
{
|
||||
maFtInfo.SetControlBackground(GetSettings().GetStyleSettings().GetHighlightColor());
|
||||
maFtInfo.SetText(maErrInvalidNameStr);
|
||||
|
|
Loading…
Reference in a new issue