diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx index d58ad9d5bb82..84e65e3316e8 100644 --- a/vcl/source/filter/sgvspln.cxx +++ b/vcl/source/filter/sgvspln.cxx @@ -717,8 +717,10 @@ bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly) dt1=t-tv[i]; dt2=dt1*dt1; dt3=dt2*dt1; long x=long(ax[i]+bx[i]*dt1+cx[i]*dt2+dx[i]*dt3); long y=long(ay[i]+by[i]*dt1+cy[i]*dt2+dy[i]*dt3); - if (xMaxKoord) x=MaxKoord; - if (yMaxKoord) y=MaxKoord; + if (xMaxKoord) x=MaxKoord; + if (yMaxKoord) y=MaxKoord; if (rPoly.GetSize()32000) xp1=32000; if (xp1<-12000) xp1=-12000; - if (yp1>32000) yp1=32000; if (yp1<-12000) yp1=-12000; + if (xp1>32000) xp1=32000; + if (xp1<-12000) xp1=-12000; + if (yp1>32000) yp1=32000; + if (yp1<-12000) yp1=-12000; Pos.x=short(xp1); Pos.y=short(yp1);