sc/source/ui/condformat/condformatdlg.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 7504af39686171ffb16e70f798d9ecf4ea98f1d3 Author: tagezi <lera.goncha...@gmail.com> Date: Tue Dec 19 13:32:26 2017 +0200 tdf#114545 Enabling/Disabling Ok button depending on correct format Change-Id: Iab3c4363dda0260d16c7167946044c39c21b863a Reviewed-on: https://gerrit.libreoffice.org/46790 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins <c...@libreoffice.org> diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index 1a5ccb659943..4f9f82568d1a 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -772,9 +772,15 @@ IMPL_LINK( ScCondFormatDlg, EdRangeModifyHdl, Edit&, rEdit, void ) ScRefFlags nFlags = aRange.Parse(aRangeStr, mpViewData->GetDocument(), mpViewData->GetDocument()->GetAddressConvention()); if(nFlags & ScRefFlags::VALID) + { rEdit.SetControlBackground(GetSettings().GetStyleSettings().GetWindowColor()); + mpBtnOk->Enable(true); + } else + { rEdit.SetControlBackground(COL_LIGHTRED); + mpBtnOk->Enable(false); + } updateTitle(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits