filter/source/graphicfilter/icgm/class4.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e44c97e8a8a403b8bd1e0c3e5943ebe19dec56fe
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Sep 3 10:22:26 2021 +0100
Commit:     Caolán McNamara <caol...@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 <caol...@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 );

Reply via email to