This is partial backport of #25431 to 4.x branch intended to ease future merges.
On 5.x branch function boundingRect was located in removed contours.cpp, but on 4.x branch it was in shapedescr.cpp. I've moved it to geometry.cpp on both branches together with accompanying functions.
This is partial backport of #25431 to 4.x branch intended to ease future merges.
On 5.x branch function boundingRect was located in removed contours.cpp, but on 4.x branch it was in shapedescr.cpp. I've moved it to geometry.cpp on both branches together with accompanying functions.