Apache OpenOffice (AOO) Bugzilla – Issue 53734
Circle pie convert to polygon problem
Last modified: 2013-02-07 22:02:52 UTC
Strange behavious occurs when circle pie objects are converted to polygon. They are broken in two objects : the filling and the surrounding line. To reproduce in draw : - Select Circle Pie icon from the Basic Shape menu in the drawing bar - Draw a circle pie in the draw area - Right click and select Convert -> To polygon Now there is strange behaviour : if you view points (click the Point icon on the drawing bar), the polygon point don't appear immediately. If you deselect the pie and then double click on it, you will see the polygon points, and you can drag the filling out of the surrounding contour line. The contour and filling still seems to be linked somehow because when the filling is selected by single clicking, the contour is also selected. Because of this, pies cannot be merged with other shapes since if I understand correctly, objects are converted to polygons to be merged.
Created attachment 29028 [details] An example of seperated pie filling and contour
When the pie is converted the outline and the filling belong to the same group, thats why both are marked when one is selected. The late appearance of the polygon points is reproducible.
Since this is a group, workaround to merge a circle pie with another shape : 1- Convert the pie to polygon 2- Ungroup the new resulting pie 3- Select and delete the contour 4- Format->Line-> Set Style to continous Merge then works correctly. This highlights that there is also a bug when merging two shapes that are exaclty superimposed. I have opened Issue 53750 on the subject.
AW: First, i could noit reproduce. I then found out that You are talking about the AutoShape 'CirclePie'. For info: There are two different pie shapes ATM, one built-in which You need to add to some toolbar to access it, and the AutoShape CirclePie. Indeed, the AutoShape CirclePie is converted to a group. This should not happen since AutoShape breakup checks if outline and fill shape are the same and merges them if possible. So this bug points to outline and filling of AutoShape CirclePie being different and thus make problems at breakup.
AW->SJ: SortFilledObjectsToBackByDefault returns true, which forces EnhancedCustomShape2d::CreateSubPath (called by EnhancedCustomShape2d::CreatePathObj) to really create a filled and a outline shape. I think that is not necessary for AutoShape 'CirclePie'.