Issue 14415 - 3 lines won't connect to form closed triangle shape
Summary: 3 lines won't connect to form closed triangle shape
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Windows XP
: P3 Trivial with 2 votes (vote)
Target Milestone: AOO Later
Assignee: Armin Le Grand
QA Contact: issues@graphics
URL: http://kosh.datateamsys.com/~danny/OO...
Keywords:
: 21246 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-05-13 15:09 UTC by dannyb
Modified: 2009-12-29 13:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
OOo Draw of 3 lines that won't connect to form closed triangle (5.80 KB, application/OOoDraw)
2003-05-13 15:11 UTC, dannyb
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dannyb 2003-05-13 15:09:45 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.
Comment 1 dannyb 2003-05-13 15:11:32 UTC
Created attachment 6187 [details]
OOo Draw of 3 lines that won't connect to form closed triangle
Comment 2 wolframgarten 2003-05-13 15:35:54 UTC
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.
Comment 3 Armin Le Grand 2003-05-28 15:10:13 UTC
Seems as if there maybe some logic involved, but i could not
definitely find out. This is a candidate for next release.
Comment 4 Armin Le Grand 2003-06-10 13:53:59 UTC
Redefining target.
Comment 5 Armin Le Grand 2003-09-12 13:14:14 UTC
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.
Comment 6 wolframgarten 2003-10-16 15:19:47 UTC
*** Issue 21246 has been marked as a duplicate of this issue. ***
Comment 7 guido.pinkernell 2003-10-20 13:51:33 UTC
Since this seems to have been confirmed -> confirmed
Comment 8 dannyb 2003-11-08 23:55:33 UTC
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.
Comment 9 Regina Henschel 2007-02-05 18:23:20 UTC
There seem to be fundamental problems with the command "Connect", see issue
14154 and my proposals in issue 70373.
Comment 10 Armin Le Grand 2009-12-29 13:03:09 UTC
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.
Comment 11 Armin Le Grand 2009-12-29 13:03:43 UTC
AW: Closing.