Kaydet (Commit) f71f962a authored tarafından Luboš Luňák's avatar Luboš Luňák

fix crash and fix rtl logic

üst 6773616a
......@@ -3619,12 +3619,12 @@ void DocxAttributeOutput::ParaAdjust( const SvxAdjustItem& rAdjust )
const SfxItemSet* pItems = GetExport().GetCurItemSet();
const SvxFrameDirectionItem* rFrameDir = static_cast< const SvxFrameDirectionItem* >( pItems->GetItem( RES_FRAMEDIR ) );
bool bRtl = false;
short nDir = rFrameDir->GetValue();
bRtl = ( nDir == FRMDIR_HORI_RIGHT_TOP );
short nDir = FRMDIR_ENVIRONMENT;
if( rFrameDir != NULL )
nDir = rFrameDir->GetValue();
if ( nDir == FRMDIR_ENVIRONMENT )
nDir = GetExport( ).GetDefaultFrameDirection( );
bool bRtl = ( nDir == FRMDIR_HORI_RIGHT_TOP );
switch ( rAdjust.GetAdjust() )
{
......
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