From 35a5d4a237150db66f9680782619fc9f65f5f12a Mon Sep 17 00:00:00 2001 From: Thomas Benisch Date: Fri, 3 Nov 2000 14:20:51 +0000 Subject: #79173: wrong view frame in second call pDispatcher->Execute --- basctl/source/basicide/macrodlg.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'basctl/source/basicide/macrodlg.cxx') diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index bee3afd0c..033128649 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: macrodlg.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mh $ $Date: 2000-09-29 11:02:37 $ + * last change: $Author: tbe $ $Date: 2000-11-03 15:20:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -677,6 +677,8 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton ) if( pDispatcher ) { pDispatcher->Execute( SID_BASICIDE_APPEAR, SFX_CALLMODE_SYNCHRON ); + pCurFrame = SfxViewFrame::Current(); + pDispatcher = pCurFrame ? pCurFrame->GetDispatcher() : NULL; pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SFX_CALLMODE_ASYNCHRON, &aInfoItem, 0L ); } EndDialog( MACRO_EDIT ); -- cgit v1.2.3