diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/fly.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index 1aa75a534f84..677677b09e35 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -2499,7 +2499,7 @@ Size SwFlyFrm::CalcRel( const SwFmtFrmSize &rSz ) const nRelWidth = std::min( nRelWidth, pPage->Frm().Width() ); else nRelWidth = std::min( nRelWidth, pPage->Prt().Width() ); - if (rSz.GetWidthPercentRelation() == text::RelOrientation::PAGE_FRAME) + if (rSz.GetHeightPercentRelation() == text::RelOrientation::PAGE_FRAME) // Ignore margins of pPage. nRelHeight = std::min( nRelHeight, pPage->Frm().Height() ); else |