Kaydet (Commit) 6e93e78c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't show an error message for empty names in Define Names, fdo#46816

üst 947a51f5
...@@ -167,7 +167,13 @@ bool ScNameDefDlg::IsNameValid() ...@@ -167,7 +167,13 @@ bool ScNameDefDlg::IsNameValid()
} }
maFtInfo.SetControlBackground(GetSettings().GetStyleSettings().GetDialogColor()); 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.SetControlBackground(GetSettings().GetStyleSettings().GetHighlightColor());
maFtInfo.SetText(maErrInvalidNameStr); maFtInfo.SetText(maErrInvalidNameStr);
......
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