Lines 217-229
Link Here
|
217 |
// PTR_CAST( ScTabViewShell, SfxViewShell::Current() ); |
217 |
// PTR_CAST( ScTabViewShell, SfxViewShell::Current() ); |
218 |
|
218 |
|
219 |
ScTabViewShell* pViewShell = NULL; |
219 |
ScTabViewShell* pViewShell = NULL; |
220 |
SfxDispatcher* pDisp = p->GetDispatcher(); |
220 |
SfxViewFrame* pViewFrm = NULL; |
221 |
if ( pDisp ) |
221 |
|
222 |
{ |
222 |
if ( SfxDispatcher* pDisp = p->GetDispatcher() ) |
223 |
SfxViewFrame* pViewFrm = pDisp->GetFrame(); |
223 |
if ( pViewFrm = pDisp->GetFrame() ) |
224 |
if ( pViewFrm ) |
|
|
225 |
pViewShell = PTR_CAST( ScTabViewShell, pViewFrm->GetViewShell() ); |
224 |
pViewShell = PTR_CAST( ScTabViewShell, pViewFrm->GetViewShell() ); |
226 |
} |
|
|
227 |
|
225 |
|
228 |
DBG_ASSERT( pViewShell, "missing view shell :-(" ); |
226 |
DBG_ASSERT( pViewShell, "missing view shell :-(" ); |
229 |
|
227 |
|
Lines 239-248
Link Here
|
239 |
if(bAutoReOpen && pViewShell) |
237 |
if(bAutoReOpen && pViewShell) |
240 |
pWindow = pViewShell->CreateRefDialog( p, this, pInfo, pParentP, WID_SIMPLE_REF); |
238 |
pWindow = pViewShell->CreateRefDialog( p, this, pInfo, pParentP, WID_SIMPLE_REF); |
241 |
|
239 |
|
242 |
if (!pWindow) |
240 |
if ( !pWindow && pViewFrm ) |
243 |
{ |
241 |
pViewFrm->SetChildWindow( nId, sal_False ); |
244 |
SC_MOD()->SetRefDialog( nId, sal_False ); |
|
|
245 |
} |
246 |
} |
242 |
} |
247 |
|
243 |
|
248 |
void ScSimpleRefDlgWrapper::SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet) |
244 |
void ScSimpleRefDlgWrapper::SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet) |