From 78029666b972020ced2c3c31fcb401d9159c707d Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Wed, 6 Feb 2002 07:15:30 +0000 Subject: #96957# new handling inserted for context menu and accessibility --- dbaccess/source/ui/querydesign/QueryTextView.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/ui/querydesign/QueryTextView.cxx') 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()); } -- cgit