summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-31 14:46:59 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-10-02 17:38:14 +0200
commit97feb234b590e5102b44bfe5794b4ed17901ea50 (patch)
tree36dee757459976c006942d0065b981182109830c /sw/source
parentba71c346d6ac60b2c49caed81673d4ca498a6f1e (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/source')
-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 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!