Closed abu-irrational closed 4 months ago
Consider this case: rectA = {-100, -100, 200, 200 } rectB = { 0,0, 20, 20} // thus rectB is contained in rectA, then mergeRect() should be equal to rectA
// old mergeRect mergeRect(rectA,rectB) -- > {-100,-100, 100, 100 } // wrong
// new mergeRect mergeRect(rectA,rectB) -- > {-100,-100, 200, 200 } // correct
I merged the changes into svgdatatypes.h instead of svgstructuretypes.h
Consider this case: rectA = {-100, -100, 200, 200 } rectB = { 0,0, 20, 20} // thus rectB is contained in rectA, then mergeRect() should be equal to rectA
// old mergeRect mergeRect(rectA,rectB) -- > {-100,-100, 100, 100 } // wrong
// new mergeRect mergeRect(rectA,rectB) -- > {-100,-100, 200, 200 } // correct