summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-31 14:46:59 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-31 15:22:23 +0200
commitda53c44d7074499db2d0ba57eee09bde6152e7ea (patch)
tree4d98eede4a87b649f1c704b147aa7389e9b9ddd0 /sw
parent40db75b69cea0aea402a4a62bba2d68a65cc9607 (diff)
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
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/frmtool.cxx4
1 files changed, 4 insertions, 0 deletions
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!