diff options
Diffstat (limited to 'sc/source/ui/namedlg/namedefdlg.cxx')
-rw-r--r-- | sc/source/ui/namedlg/namedefdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx index 9eda9de45387..0074088cdc0f 100644 --- a/sc/source/ui/namedlg/namedefdlg.cxx +++ b/sc/source/ui/namedlg/namedefdlg.cxx @@ -132,7 +132,7 @@ bool ScNameDefDlg::IsNameValid() } ScRangeData::IsNameValidType eType; - m_xFtInfo->set_error(false); + m_xFtInfo->set_message_type(weld::EntryMessageType::Normal); if ( aName.isEmpty() ) { m_xBtnAdd->set_sensitive(false); @@ -141,7 +141,7 @@ bool ScNameDefDlg::IsNameValid() } else if ((eType = ScRangeData::IsNameValid( aName, mpDoc )) != ScRangeData::NAME_VALID) { - m_xFtInfo->set_error(true); + m_xFtInfo->set_message_type(weld::EntryMessageType::Error); if (eType == ScRangeData::NAME_INVALID_BAD_STRING) { m_xFtInfo->set_label(maErrInvalidNameStr); @@ -155,7 +155,7 @@ bool ScNameDefDlg::IsNameValid() } else if (pRangeName->findByUpperName(ScGlobal::pCharClass->uppercase(aName))) { - m_xFtInfo->set_error(true); + m_xFtInfo->set_message_type(weld::EntryMessageType::Error); m_xFtInfo->set_label(maErrNameInUse); m_xBtnAdd->set_sensitive(false); return false; @@ -163,7 +163,7 @@ bool ScNameDefDlg::IsNameValid() if (!IsFormulaValid()) { - m_xFtInfo->set_error(true); + m_xFtInfo->set_message_type(weld::EntryMessageType::Error); m_xBtnAdd->set_sensitive(false); return false; } |