diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-09-08 11:12:27 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-09-11 17:16:59 +0200 |
commit | c747486335c089baf440b8f040d3ffdc14aa5049 (patch) | |
tree | 0d173f69ac82099cfb8bde3ac2831a682665391d /sw/source | |
parent | 5f5f2f8107b6176654bfb9a30c21b7d5e0c62c6f (diff) |
basegfx: replace typedef with a class B2DSize based on Size2D
Change-Id: Id8b3c2bcf0bf4be5aba2812b0edda479bc20c6a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139683
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/docnode/ndnotxt.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/HeaderFooterWin.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx index cca2d75f71fa..e4641de22325 100644 --- a/sw/source/core/docnode/ndnotxt.cxx +++ b/sw/source/core/docnode/ndnotxt.cxx @@ -117,8 +117,8 @@ const tools::PolyPolygon *SwNoTextNode::HasContour() const if ( !bPixelGrf && m_bPixelContour ) { basegfx::B2DSize aDPI = GetGraphic().GetPPI(); - nGrfDPIx = aDPI.getX(); - nGrfDPIy = aDPI.getY(); + nGrfDPIx = aDPI.getWidth(); + nGrfDPIy = aDPI.getHeight(); } } OSL_ENSURE( !bPixelGrf || aGrfMap == aContourMap, diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx index ba75b20ec3ff..33df6419b154 100644 --- a/sw/source/uibase/docvw/HeaderFooterWin.cxx +++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx @@ -323,7 +323,7 @@ void SwHeaderFooterWin::PaintButton() // Create the 'plus' or 'arrow' primitive B2DRectangle aSignArea(B2DPoint(aRect.Right() - BUTTON_WIDTH, 0.0), - B2DSize(aRect.Right(), aRect.getOpenHeight())); + B2DVector(aRect.Right(), aRect.getOpenHeight())); B2DPolygon aSign; bool bIsEmptyHeaderFooter = IsEmptyHeaderFooter(); |