diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-02-06 07:15:30 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-02-06 07:15:30 +0000 |
commit | 78029666b972020ced2c3c31fcb401d9159c707d (patch) | |
tree | c181d1ff00ebc9b31ab097cea43baa509261b0bf /dbaccess/source/ui/querydesign/QueryTextView.cxx | |
parent | e31dcc276b3f0851338593c0dc9d42f022d736df (diff) |
#96957# new handling inserted for context menu and accessibility
Diffstat (limited to 'dbaccess/source/ui/querydesign/QueryTextView.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryTextView.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx index 406d834ecd22..3fe4b02bdaa9 100644 --- a/dbaccess/source/ui/querydesign/QueryTextView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx @@ -2,9 +2,9 @@ * * $RCSfile: QueryTextView.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: oj $ $Date: 2001-09-27 06:19:01 $ + * last change: $Author: oj $ $Date: 2002-02-06 08:15:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -165,11 +165,10 @@ void OQueryTextView::setReadOnly(sal_Bool _bReadOnly) // ----------------------------------------------------------------------------- void OQueryTextView::clear() { - SfxUndoManager* pUndoMgr = getContainerWindow()->getDesignView()->getController()->getUndoMgr(); OSqlEditUndoAct* pUndoAct = new OSqlEditUndoAct( m_pEdit ); pUndoAct->SetOriginalText( m_pEdit->GetText() ); - pUndoMgr->AddUndoAction( pUndoAct ); + getContainerWindow()->getDesignView()->getController()->addUndoActionAndInvalidate( pUndoAct ); m_pEdit->SetText(String()); } |