diff options
author | Thomas Benisch <tbe@openoffice.org> | 2000-11-03 14:20:51 +0000 |
---|---|---|
committer | Thomas Benisch <tbe@openoffice.org> | 2000-11-03 14:20:51 +0000 |
commit | 35a5d4a237150db66f9680782619fc9f65f5f12a (patch) | |
tree | 1b9c613a103a2847600ae4894e79ad3b8e0686c5 /basctl/source/basicide/macrodlg.cxx | |
parent | 485603dfc34de3d2f42729430f173e57fcf8ce8f (diff) |
#79173: wrong view frame in second call pDispatcher->Execute
Diffstat (limited to 'basctl/source/basicide/macrodlg.cxx')
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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 ); |