summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/TableController.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-11 06:13:46 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-11 06:13:46 +0000
commit780c74a505e685c1515de6fafb1e54a4ea01f17a (patch)
tree265913da37c64d4c83a79c8637f25d92e1fcb25d /dbaccess/source/ui/tabledesign/TableController.cxx
parent96403918e42626bc44f5d94ae6522fea016a8702 (diff)
#100599# check if row is readonly
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableController.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index 85418deb1fa3..ff7cc385051e 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TableController.cxx,v $
*
- * $Revision: 1.73 $
+ * $Revision: 1.74 $
*
- * last change: $Author: oj $ $Date: 2002-07-09 12:38:17 $
+ * last change: $Author: oj $ $Date: 2002-07-11 07:13:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1294,8 +1294,13 @@ void OTableController::alterColumns()
{
OSL_ENSURE(*aIter,"OTableRow is null!");
OFieldDescription* pField = (*aIter)->GetActFieldDescr();
- if ( !pField || (*aIter)->IsReadOnly() )
+ if ( !pField )
+ continue;
+ if ( (*aIter)->IsReadOnly() )
+ {
+ aColumns[pField->GetName()] = sal_True;
continue;
+ }
Reference<XPropertySet> xColumn;
if ( xColumns->hasByName(pField->GetName()) )
@@ -1467,7 +1472,7 @@ void OTableController::alterColumns()
{
OSL_ENSURE(*aIter,"OTableRow is null!");
OFieldDescription* pField = (*aIter)->GetActFieldDescr();
- if(!pField)
+ if ( !pField || (*aIter)->IsReadOnly() )
continue;
Reference<XPropertySet> xColumn;