INTEGRATION: CWS draw18 (1.29.2); FILE MERGED
2003/06/17 13:10:06 af 1.29.2.2: #110243# Avoid invalid cast. 2003/06/17 12:49:15 af 1.29.2.1: #110243# Joined two if statements to their original form to allow proper update of preview.
This commit is contained in:
parent
81326cbce7
commit
9d10666355
1 changed files with 19 additions and 19 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: sdmod2.cxx,v $
|
||||
*
|
||||
* $Revision: 1.29 $
|
||||
* $Revision: 1.30 $
|
||||
*
|
||||
* last change: $Author: vg $ $Date: 2003-06-06 10:45:53 $
|
||||
* last change: $Author: vg $ $Date: 2003-06-24 07:41:21 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -262,25 +262,25 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo)
|
|||
|
||||
if( pViewSh )
|
||||
{
|
||||
if( pViewSh->ISA( SdOutlineViewShell ) )
|
||||
// #110023#
|
||||
// since the view from the SdOutlineViewShell can be zero during SdOutlineViewShell c'tor
|
||||
// we have to check this here
|
||||
SdOutlineView* pSdView = NULL;
|
||||
if (pViewSh->ISA (SdOutlineViewShell))
|
||||
pSdView = static_cast<SdOutlineView*> (static_cast<SdOutlineViewShell*>(pViewSh)->GetView());
|
||||
if (pSdView != NULL
|
||||
&& (pInfo->GetOutliner() == pSdView->GetOutliner()))
|
||||
{
|
||||
// #110023#
|
||||
// since the view from the SdOutlineViewShell can be zero during SdOutlineViewShell c'tor
|
||||
// we have to check this here
|
||||
SdOutlineView * pSdView = (SdOutlineView*) ( (SdOutlineViewShell*) pViewSh)->GetView();
|
||||
if( pSdView && (pInfo->GetOutliner() == pSdView->GetOutliner()) )
|
||||
{
|
||||
// outline mode
|
||||
nPgNum = 0;
|
||||
Outliner* pOutl = pSdView->GetOutliner();
|
||||
long nPos = pInfo->GetPara();
|
||||
ULONG nParaPos = 0;
|
||||
// outline mode
|
||||
nPgNum = 0;
|
||||
Outliner* pOutl = pSdView->GetOutliner();
|
||||
long nPos = pInfo->GetPara();
|
||||
ULONG nParaPos = 0;
|
||||
|
||||
for( Paragraph* pPara = pOutl->GetParagraph( 0 ); pPara && nPos >= 0; pPara = pOutl->GetParagraph( ++nParaPos ), nPos-- )
|
||||
{
|
||||
if( pOutl->GetDepth( (USHORT) nParaPos ) == 0 )
|
||||
nPgNum++;
|
||||
}
|
||||
for( Paragraph* pPara = pOutl->GetParagraph( 0 ); pPara && nPos >= 0; pPara = pOutl->GetParagraph( ++nParaPos ), nPos-- )
|
||||
{
|
||||
if( pOutl->GetDepth( (USHORT) nParaPos ) == 0 )
|
||||
nPgNum++;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue