summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-09-21 10:40:24 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-10-02 18:05:07 +0200
commit8ef9931bd7f15e42c0e1f93b6a766262d5ad6291 (patch)
treefc6dd23200a533caca407d1f0a0bc520ac4a391c
parent7669dac281be48ce1d0602e7619d5936bc9f7aea (diff)
n#779627: table empty cell para collapse fix with fly frames
Make sure that the collapsed empty cell paragraph is more important in FormatEmpty than anything else (fly frames are the onle case. Change-Id: Id88e3370e988b45eabe4b9b30628e5472e9db1fe
-rw-r--r--sw/source/core/text/porrst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/porrst.cxx b/sw/source/core/text/porrst.cxx
index ee54f0f43f63..ceb4ceaa2167 100644
--- a/sw/source/core/text/porrst.cxx
+++ b/sw/source/core/text/porrst.cxx
@@ -330,7 +330,7 @@ sal_Bool SwTxtFrm::FormatEmpty()
SwTxtFly aTxtFly( this );
SwRect aRect;
sal_Bool bFirstFlyCheck = 0 != Prt().Height();
- if ( bFirstFlyCheck &&
+ if ( !bCollapse && bFirstFlyCheck &&
aTxtFly.IsOn() && aTxtFly.IsAnyObj( aRect ) )
return sal_False;
else
@@ -363,7 +363,7 @@ sal_Bool SwTxtFrm::FormatEmpty()
SetEmpty( sal_True );
SetCompletePaint();
}
- if( !bFirstFlyCheck &&
+ if( !bCollapse && !bFirstFlyCheck &&
aTxtFly.IsOn() && aTxtFly.IsAnyObj( aRect ) )
return sal_False;