diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-25 11:31:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-25 14:14:58 +0200 |
commit | 3b7c803b1b2f5d13f5ca225a9d4aabab348c7786 (patch) | |
tree | 637d523db77c18b5a7ba9a790b5c72713f26bb93 /sw/source/core/layout/anchoreddrawobject.cxx | |
parent | d7dd8bb3bdd0fee44d6704cbf34d4a39cd7a3d29 (diff) |
SwPageFrm::GetBoundRect: use vcl::RenderContext
Change-Id: Id9e9aa312d8fd4e0d776b41c9cca8073fa57b6fa
Diffstat (limited to 'sw/source/core/layout/anchoreddrawobject.cxx')
-rw-r--r-- | sw/source/core/layout/anchoreddrawobject.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/anchoreddrawobject.cxx b/sw/source/core/layout/anchoreddrawobject.cxx index a5141df9fb16..1f7ebb265b86 100644 --- a/sw/source/core/layout/anchoreddrawobject.cxx +++ b/sw/source/core/layout/anchoreddrawobject.cxx @@ -640,7 +640,7 @@ const SwRect SwAnchoredDrawObject::GetObjBoundRect() const // Exclude margins. aPageRect = GetPageFrm()->Prt().SVRect(); else - aPageRect = GetPageFrm( )->GetBoundRect( ).SVRect(); + aPageRect = GetPageFrm( )->GetBoundRect( GetPageFrm()->getRootFrm()->GetCurrShell()->GetOut() ).SVRect(); nTargetWidth = aPageRect.GetWidth( ) * (*GetDrawObj( )->GetRelativeWidth()); } @@ -652,7 +652,7 @@ const SwRect SwAnchoredDrawObject::GetObjBoundRect() const // Exclude margins. aPageRect = GetPageFrm()->Prt().SVRect(); else - aPageRect = GetPageFrm( )->GetBoundRect( ).SVRect(); + aPageRect = GetPageFrm( )->GetBoundRect( GetPageFrm()->getRootFrm()->GetCurrShell()->GetOut() ).SVRect(); nTargetHeight = aPageRect.GetHeight( ) * (*GetDrawObj( )->GetRelativeHeight()); } |