diff options
-rw-r--r-- | sw/source/core/layout/trvlfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index 80da5152f509..1be599eb7aa3 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -1800,7 +1800,7 @@ sal_uInt16 SwFrm::GetVirtPageNum() const return 0; sal_uInt16 nPhyPage = pPage->GetPhyPageNum(); - if ( !((SwRootFrm*)pPage->GetUpper())->IsVirtPageNum() ) + if ( !(static_cast<const SwRootFrm*>(pPage->GetUpper()))->IsVirtPageNum() ) return nPhyPage; //Search the nearest section using the virtual page number. |