Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.3
-
None
Description
In the attached example, there is two SVG groups, each one composed of a rectangle and a text with a transformation. The first group, group1 contains a rectangle followed by a text and the second group, group2, contains a text followed by a rectangle
Both groups must have the same bounds because their children have the same bounds but we obtain different values:
boundOnElement: group1 => QRectF(0,0 247.972x201.807)
boundOnElement: rectangle1 => QRectF(0,0 70x14)
boundOnElement: text1 => QRectF(191.875,146.382 56.0976x55.4246)
VS
boundOnElement: group2 => QRectF(191.875,146.382 67.8897x63.6098)
boundOnElement: rectangle2 => QRectF(0,0 70x14)
boundOnElement: text2 => QRectF(191.875,146.382 56.0976x55.4246)
The bounding box of group1 is correct: bounds of group1 = bounds of rect1 + bounds of text1
The bounding box of group2 is incorrect: bounds of group2 != bounds of rect2 + bounds of text2