Apache OpenOffice (AOO) Bugzilla – Issue 14415
3 lines won't connect to form closed triangle shape
Last modified: 2009-12-29 13:03:43 UTC
This Draw document contains 3 lines in the form of a triangle. http://kosh.datateamsys.com/~danny/OOo/BugAttachment/3Lines-WontConnect.sxd Download document. Open it. It has only 3 lines. Select-All. Right-click, and pick Connect. Instead of connecting the three lines to form a closed triangle, the top line disappears, and the figure is left with two lines of the triangle looking like a V. How is this figure formed? By using a power tool I am working on. Download the tool here. http://kosh.datateamsys.com/~danny/OOo/BugAttachment/StarPolygonTool-20030513- 1.sxd Download. Open. (This document contains Macros.) Click the Star/Polygon Builder button. Dialog box appears. Set dialog box controls as follows... Number of Sides = 9 Enclosing Polygon -> unchecked Inscribed Star -> checked Vertexes To Skip for Star = 3 Create As.... Filled Shape (radio button) Then click the Create button. A new drawing appears with your 9 pointed star made up of 3 triangles. The 3rd triangle is the one described above where the 3 lines won't interconnect to form a closed shape.
Created attachment 6187 [details] OOo Draw of 3 lines that won't connect to form closed triangle
This is reproduceable in OO1.1beta and in a current internal version. In the current version the upper line is not lost but the three lines are not connected. Reassigned to Armin.
Seems as if there maybe some logic involved, but i could not definitely find out. This is a candidate for next release.
Redefining target.
AW: The third line is indeed not lost, but misformed. Office tries to make a bezier polygon from the three lines, and the start/end point of the top line is identical.
*** Issue 21246 has been marked as a duplicate of this issue. ***
Since this seems to have been confirmed -> confirmed
I have additional information since I first reported this bug. I have a program which draws random christmas trees. You know the familiar shape. Sawtooth pattern on both sides, narrowing towards the top to a single point. The bottom base line of the tree is a long horizontal line. If the last line of the group being connected is a horizontal line, I get the same bug behavior. If I simply rearrange the order of the lines, drawing the baseline first instead of last, followed in order, by the other lines of the tree, then I get a correctly enclosed shape. That is, I am still drawing the same set of lines and then trying to "connect" them to form an enclosed shape I can fill with a random shade of green. By drawing the bottom base line first, I don't get this bug behavior. If the long horizontal base line is the last line, then the shape exhibits the same problems as in the original bug report. I could give you the *working* version of the random christmas tree generator, but it will soon appear on OOoMacros.org. Or get the document RandomTrees from here... http://kosh.datateamsys.com/~danny/OOo/Examples/Draw/ I would be happy to provide a bugged version if you would like. I believe the description I have given here should adequately explain the additional information I have observed. The earlier document and code I gave to illustrate the problem is much simpler, and therefore more likely to be helpful. Hope this helps.
There seem to be fundamental problems with the command "Connect", see issue 14154 and my proposals in issue 70373.
AW: Checked in DEV300m66 (with primitive changes) and it connects nicely (and as expected) to a closed triangle shape now. It does not get extended to a curve when not necessary, too. From the description, i see this fixed.
AW: Closing.