From da53c44d7074499db2d0ba57eee09bde6152e7ea Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Tue, 31 Jul 2012 14:46:59 +0200 Subject: n#772094: pictures was eaten by document default LR settings Why should we take care of LR Space for SwNoTxtNode... those are images-like contents that don't contain text. Change-Id: I58f6d77efc01febf422073032802f57c5158a034 --- sw/source/core/layout/frmtool.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw') diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index b300ba0a8e69..4d2e2313cc3a 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1850,6 +1850,10 @@ SwBorderAttrs::SwBorderAttrs( const SwModify *pMod, const SwFrm *pConstructor ) { pTxtFrm->GetTxtNode()->ClearLRSpaceItemDueToListLevelIndents( rLR ); } + else if ( pConstructor->IsNoTxtFrm() ) + { + rLR = SvxLRSpaceItem ( RES_LR_SPACE ); + } //Achtung: Die USHORTs fuer die gecache'ten Werte werden absichtlich //nicht initialisiert! -- cgit