diff options
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 13 |
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; |