summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx8
-rw-r--r--sc/source/ui/inc/condformatdlg.hxx2
2 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index f23bf21890a0..6bced64e01af 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -378,6 +378,14 @@ void ScCondFormatDlg::RefInputDone( sal_Bool bForced )
ScAnyRefDlg::RefInputDone(bForced);
}
+sal_Bool ScCondFormatDlg::IsTableLocked() const
+{
+ if(mpLastEdit && mpLastEdit != &maEdRange)
+ return sal_False;
+
+ return sal_True;
+}
+
sal_Bool ScCondFormatDlg::IsRefInputMode() const
{
return maEdRange.IsEnabled();
diff --git a/sc/source/ui/inc/condformatdlg.hxx b/sc/source/ui/inc/condformatdlg.hxx
index 3b3cfb30aa56..194d60caca6b 100644
--- a/sc/source/ui/inc/condformatdlg.hxx
+++ b/sc/source/ui/inc/condformatdlg.hxx
@@ -138,7 +138,7 @@ public:
virtual void SetReference(const ScRange&, ScDocument*);
virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual sal_Bool IsTableLocked() const { return sal_True; }
+ virtual sal_Bool IsTableLocked() const;
void InvalidateRefData();