Kaydet (Commit) 061bffcb authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) David Tardon

Resolves: rhbz#673819 crash on changing position of drawing object in header

The header/footer objects are cunning wrappers to pretend to some parts
of the drawing stuff that there are multiple objects, while in reality
there is only one. So call HasText actually gets a totally different
object from the cast :-(
Signed-off-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst babbe324
......@@ -1930,7 +1930,10 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView )
}
// this should happen via SID_ATTR_TRANSFORM_AUTOSIZE
if( rMarkList.GetMarkCount() == 1 )
if( rMarkList.GetMarkCount() != 1 )
m_bIsMultiSelection = true;
#if OSL_DEBUG_LEVEL > 1
else
{
const SdrObject* pObj = rMarkList.GetMark( 0 )->GetMarkedSdrObj();
SdrObjKind eKind = (SdrObjKind) pObj->GetObjIdentifier();
......@@ -1941,8 +1944,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView )
DBG_ERROR("AutoWidth/AutoHeight should be enabled");
}
}
else
m_bIsMultiSelection = true;
#endif
// use page offset and recalculate
Point aPt( m_pSdrView->GetSdrPageView()->GetPageOrigin() );
......
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