Kaydet (Commit) 920887fe authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

some minor changes in module sw to avoid warning from compiler under windows/cygwin environment

üst 0de515b6
......@@ -1506,10 +1506,13 @@ void SwDrawContact::_Changed( const SdrObject& rObj,
if ( bAnchoredAsChar )
{
//-->Modified for i119654,2012.6.8
SwFrm *pAnchorFrame = NULL;
if ( pAnchoredDrawObj && ( pAnchorFrame =
const_cast<SwAnchoredDrawObject*>( pAnchoredDrawObj )->AnchorFrm() ) )
SwFrm* pAnchorFrame = pAnchoredDrawObj
? const_cast<SwAnchoredDrawObject*>( pAnchoredDrawObj )->AnchorFrm()
: NULL;
if ( pAnchorFrame )
{
pAnchorFrame->Prepare( PREP_FLY_ATTR_CHG, GetFmt() );
}
//<--
}
// <--
......
......@@ -657,12 +657,17 @@ sal_Bool SwGraphicProperties_Impl::AnyToItemSet(
rtl::Reference< SwDocStyleSheet > xStyle( new SwDocStyleSheet(*pStyle) );
const :: SfxItemSet *pItemSet = &xStyle->GetItemSet();
//Begin Bug 119922
sal_Bool bOasis = sal_False;
SfxMedium* pMedium = NULL;
const SfxFilter * pFilter = NULL;
if ( ( pMedium = pDoc->GetDocShell()->GetMedium() ) &&
( pFilter = pMedium->GetFilter() ) )
bOasis = pFilter->GetVersion() > SOFFICE_FILEFORMAT_60;
sal_Bool bOasis = sal_False;
{
const SfxMedium* pMedium = pDoc->GetDocShell()->GetMedium();
const SfxFilter * pFilter = pMedium
? pMedium->GetFilter()
: NULL;
if ( pMedium && pFilter )
{
bOasis = pFilter->GetVersion() > SOFFICE_FILEFORMAT_60;
}
}
bRet = FillBaseProperties( rFrmSet, *pItemSet, rSizeFound, bOasis );
//End Bug 119922
lcl_FillMirror ( rGrSet, *pItemSet, pHEvenMirror, pHOddMirror, pVMirror, bRet );
......
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