Kaydet (Commit) 7fc5207e authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Caolán McNamara

Refactor a tiny bit of SwLayAction::IsShortCut

Change-Id: I13d4fbebec02bddaa27e8929188d497dde715730
Reviewed-on: https://gerrit.libreoffice.org/10980Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 676efb67
......@@ -1175,15 +1175,13 @@ bool SwLayAction::IsShortCut( SwPageFrm *&prPage )
}
// #121980# - no shortcut, if at previous page
// an anchored object is registered, whose anchor is <pCntnt>.
else if ( prPage->GetPrev() &&
static_cast<SwPageFrm*>(prPage->GetPrev())->GetSortedObjs() )
else if ( prPage->GetPrev() )
{
SwSortedObjs* pObjs =
static_cast<SwPageFrm*>(prPage->GetPrev())->GetSortedObjs();
if ( pObjs )
{
sal_uInt32 i = 0;
for ( ; i < pObjs->Count(); ++i )
for ( sal_uInt32 i = 0; i < pObjs->Count(); ++i )
{
SwAnchoredObject* pObj = (*pObjs)[i];
if ( pObj->GetAnchorFrmContainingAnchPos() == pCntnt )
......
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