diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-07-25 06:08:55 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-07-25 06:08:55 +0000 |
commit | 4988c9ba24796735e991b3312ede615ca53248cd (patch) | |
tree | dfef260ab3e199d5dc4bc15526cbe82ca4e5c107 /dbaccess/source/ui | |
parent | 6a6f6c91b2767ed0fef3c7ea34dba125a0bc051c (diff) |
#95146# now acquire and release controller when set
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/browser/dataview.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/ui/browser/dataview.cxx b/dbaccess/source/ui/browser/dataview.cxx index 33dac049db43..ca05c9183e5b 100644 --- a/dbaccess/source/ui/browser/dataview.cxx +++ b/dbaccess/source/ui/browser/dataview.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dataview.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: fs $ $Date: 2002-05-22 14:02:12 $ + * last change: $Author: oj $ $Date: 2002-07-25 07:08:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -137,6 +137,7 @@ namespace dbaui { DBG_CTOR(ODataView,NULL); OSL_ENSURE(m_pController,"Controller must be not NULL!"); + m_pController->acquire(); } // ------------------------------------------------------------------------- @@ -150,6 +151,7 @@ namespace dbaui setToolBox(NULL); enableSeparator( sal_False ); + m_pController->release(); DBG_DTOR(ODataView,NULL); } @@ -251,9 +253,7 @@ namespace dbaui void ODataView::Resize() { Window::Resize(); - Size aSize = GetSizePixel(); - if(aSize.Width() > 0 && aSize.Height() > 0) - resizeAll( Rectangle( Point( 0, 0), GetSizePixel() ) ); + resizeAll( Rectangle( Point( 0, 0), GetSizePixel() ) ); } // ----------------------------------------------------------------------------- long ODataView::PreNotify( NotifyEvent& rNEvt ) |