From 97feb234b590e5102b44bfe5794b4ed17901ea50 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 407f10b2e512..843ba2230ece 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1851,6 +1851,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