diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-29 18:01:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-29 18:14:40 +0100 |
commit | ce01a206cbc445974053c8ba8b6cd7fe30f8fb02 (patch) | |
tree | ce6583d157d19a352a7cdfc633f80d1588d97fa2 /sw | |
parent | 9f6a99e4a34c1bb7688900abfd683250f66fcff1 (diff) |
swpagerelsize: fix typo in SwFlyFrm::CalcRel()
Change-Id: Ie371919e67261cdc021fc5487b35cc45f7f4105e
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 |