[Libreoffice-commits] core.git: filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 18:59:13 UTC 2021
filter/source/graphicfilter/icgm/class4.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e44c97e8a8a403b8bd1e0c3e5943ebe19dec56fe
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 3 10:22:26 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 3 20:58:38 2021 +0200
cgm bounding box was originally Point and Size
so keep it like that
Change-Id: I0392f283b79174c831d29b1895817cf6ee35ba3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121597
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/filter/source/graphicfilter/icgm/class4.cxx b/filter/source/graphicfilter/icgm/class4.cxx
index 7561e2240576..1265ef70367c 100644
--- a/filter/source/graphicfilter/icgm/class4.cxx
+++ b/filter/source/graphicfilter/icgm/class4.cxx
@@ -441,7 +441,7 @@ void CGM::ImplDoClass4()
}
if (!bUseless)
{
- tools::Rectangle aBoundingBox(fLeft, fTop, fRight, fBottom);
+ tools::Rectangle aBoundingBox(Point(fLeft, fTop), Size(2 * fRadius, 2 * fRadius));
tools::Polygon aPolygon( aBoundingBox, Point( static_cast<tools::Long>(aStartingPoint.X), static_cast<tools::Long>(aStartingPoint.Y) ) ,Point( static_cast<tools::Long>(aEndingPoint.X), static_cast<tools::Long>(aEndingPoint.Y) ), PolyStyle::Arc );
if ( nSwitch )
mpOutAct->RegPolyLine( aPolygon, true );
@@ -582,7 +582,7 @@ void CGM::ImplDoClass4()
}
if (!bUseless)
{
- tools::Rectangle aBoundingBox(fLeft, fTop, fRight, fBottom);
+ tools::Rectangle aBoundingBox(Point(fLeft, fTop), Size(2 * aRadius.X, 2 * aRadius.X));
tools::Polygon aPolygon( aBoundingBox,
Point( static_cast<tools::Long>(vector[ 0 ]), static_cast<tools::Long>(vector[ 1 ]) ),
Point( static_cast<tools::Long>(vector[ 2 ]), static_cast<tools::Long>(vector[ 3 ]) ), PolyStyle::Arc );
More information about the Libreoffice-commits
mailing list