Kaydet (Commit) da57afc4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

No need for bad SwFlyFrmFmt downcasts

Change-Id: Ie70559f344018647cbb92fe542a2278056da20e4
üst 8c693312
......@@ -54,12 +54,10 @@ static void lcl_MakeAutoFrms( const SwFrmFmts& rSpzArr, sal_uLong nMovedIndex )
{
if( !rSpzArr.empty() )
{
SwFlyFrmFmt* pFmt;
const SwFmtAnchor* pAnchor;
for( size_t n = 0; n < rSpzArr.size(); ++n )
{
pFmt = static_cast<SwFlyFrmFmt*>(rSpzArr[n]);
pAnchor = &pFmt->GetAnchor();
SwFrmFmt * pFmt = rSpzArr[n];
const SwFmtAnchor* pAnchor = &pFmt->GetAnchor();
if (pAnchor->GetAnchorId() == FLY_AT_CHAR)
{
const SwPosition* pAPos = pAnchor->GetCntntAnchor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment