diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-11-21 13:39:11 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-11-21 13:39:11 +0000 |
commit | 0ac5f7e60dcb77a68c72a11d47a1cd67335da451 (patch) | |
tree | 718e1eb500a142f0564742bdb590171a37dfaad8 /dbaccess/source/ui/tabledesign | |
parent | 7c93cf1016ab4ef6428062577aab711c16a19d66 (diff) |
#105323# if column names are double, do not release the table
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index 65cc47574fce..96bd29b03cdc 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.86 $ + * $Revision: 1.87 $ * - * last change: $Author: oj $ $Date: 2002-11-19 11:47:08 $ + * last change: $Author: oj $ $Date: 2002-11-21 14:39:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -480,9 +480,7 @@ sal_Bool OTableController::doSaveDoc(sal_Bool _bSaveAs) // check the columns for double names if(!checkColumns(bNew || !xTables->hasByName(m_sName))) { - m_sName = ::rtl::OUString(); - stopTableListening(); - m_xTable = NULL; + // #105323# OJ return sal_False; } @@ -1481,7 +1479,7 @@ void OTableController::alterColumns() // check if we have to do something with the primary key sal_Bool bNeedDropKey = sal_False; sal_Bool bNeedAppendKey = sal_False; - if(xKeyColumns.is()) + if ( xKeyColumns.is() ) { aIter = m_vRowList.begin(); for(;aIter != m_vRowList.end();++aIter) @@ -1523,7 +1521,7 @@ void OTableController::alterColumns() reSyncRows(); - if(bReload) + if ( bReload ) reload(); } // ----------------------------------------------------------------------------- |