summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-03-18 09:00:03 +0000
committerOliver Bolte <obo@openoffice.org>2005-03-18 09:00:03 +0000
commitf3de0b1271f0d1248c651c3a6b7391abe5b7b606 (patch)
tree397b54c188c086e20607c661d8cea7c9caf53a17 /svx/source/fmcomp
parentbb075c9e3f2f8e0e9ce073a3dad5201f4e5fcc91 (diff)
INTEGRATION: CWS dba25 (1.46.36); FILE MERGED
2005/03/07 10:48:12 oj 1.46.36.1: #120093# check if the row is currently pending
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 8cb1b66b1d49..36b8c7423a9c 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmgridcl.cxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: vg $ $Date: 2005-02-17 10:54:24 $
+ * last change: $Author: obo $ $Date: 2005-03-18 10:00:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1308,6 +1308,10 @@ void FmGridControl::DeleteSelectedRows()
// how many rows are selected?
sal_Int32 nSelectedRows = GetSelectRowCount();
+
+ // the current line should be deleted but it is currently in edit mode
+ if ( IsCurrentAppending() )
+ return;
// is the insert row selected
if (GetEmptyRow().Is() && IsRowSelected(GetRowCount() - 1))
nSelectedRows -= 1;