Issue 14154 - broken line/curve Connect function
Summary: broken line/curve Connect function
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Linux, all
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: Armin Le Grand
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-06 11:56 UTC by bryancole
Modified: 2013-08-07 15:40 UTC (History)
2 users (show)

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


Attachments
examples of using the Connect function to join some lines/curves: often the wrong ends are connected (7.73 KB, application/octet-stream)
2003-05-06 11:58 UTC, bryancole
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bryancole 2003-05-06 11:56:50 UTC
The OO-Draw Connect function, to connect two or more lines/curves, often and
unpredictably joins the "wrong" ends of the lines together. I cannot find a
reliable way of predicting/controlling which ends of two curves the Connect
function will join! This bug has appeared in all versions up to 1.1beta (I've
yet to try beta2).

I've attached a *.sxd file containing some examples of this.

Bryan
Comment 1 bryancole 2003-05-06 11:58:10 UTC
Created attachment 6046 [details]
examples of using the Connect function to join some lines/curves: often the wrong ends are connected
Comment 2 wolframgarten 2003-05-06 12:39:13 UTC
OpenOffice connects the lines in quite a logic way: it is important to
know that a line has a start and endpoint following the direction it
was drawn. When you have two lines drawn the startpoint of the second
will be connected to the endpoint of the first.Just draw two lines and
have a look how they get connected. Then draw them in the other
direction and have a look whats happening if you connect them. Thanks
for your help.
Comment 3 wolframgarten 2003-05-06 12:39:27 UTC
Closed.
Comment 4 bryancole 2003-05-06 13:08:41 UTC
You need to look at this again. OpenOffice *does not* follow this
logic under all conditions. 

While under some conditions the start-point of one line is joined to
end-point of the other, this is NOT always the case. In my example
drawing, your Connect-logic is violated by the the first line-pair
(left-most) on slide-1 and both the first and the third pairs on slide-2. 

My impression is that OO does indeed check to see which endpoints are
closest together therefore it's not simply a case of
startpoint-to-endpoint connection. The poisition of the lines does
make a difference.

It's not enough for OO-features to "work for me". Ask yourself: is
this feature actually functional for most users under most conditions?
I've struggled for hours trying to get two lines to connect in a
sensible and predictable way and believe me, this feature is broken.

In fact, restricting users to only being able to connect lines
startpoint to endpoint is very bad design. This means that for 75% of
cases, a user is unable to join two lines in the desired way (i.e. a
user may want to join start-to-start, end-to-end, end-to-start as well
as start-to-end).
Comment 5 wolframgarten 2003-05-06 13:31:03 UTC
Reopened.
Comment 6 wolframgarten 2003-05-06 13:41:55 UTC
Indeep there seem to be some inconsistency. For making this visible
just add arrowheads to the lines for making start and endpoints
distinguishable.
Reassigned to Armin.
Comment 7 Armin Le Grand 2003-05-13 13:13:52 UTC
AW: I took a short look, maybe there is a incositency. I will take a
deeper look for 2.0.
Comment 8 Regina Henschel 2006-10-12 00:51:47 UTC
Why has this issue status "Resolved"? Now it is three years later and the
"Connect"-function is still broken.
Comment 9 Armin Le Grand 2006-10-12 12:33:42 UTC
AW: Good question, this seems to have happened by error. Thanks for the hint!
Reopening...
Comment 10 Regina Henschel 2006-10-13 01:10:43 UTC
I think, that the way the connect command works is not good and it cannot be
improved, because it tries to work on a selection of curves and the user has no
possibility to determine which curve should be the first in the connected curve.
In addition it turnes polylines into curves although this is not necessary.
Therefor I suggest a new way to connect curves and polylinies, which work
similar to the feature in CorelDRAW and Inkscape. I have submitted issue 70373,
with a document attached, which describes in detail how I think it should work.
Comment 11 wolframgarten 2007-03-02 14:56:58 UTC
Setting to confirmed again.
Comment 12 Martin Hollmichel 2007-11-09 17:01:33 UTC
set target from 2.x to 3.x according
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 13 Armin Le Grand 2009-12-29 13:07:49 UTC
AW: Checked in DEV300m66 (with primtives). Checked the example. All chases
connect nicely and 'intuitively'. With intutitively i mean as expected: The
closest start/end points are connected. The internal algo has to 'guess' what
the user wants, and connecting the closest start/end point pair seems intuitive.
There is also the suggestion from regina(#i70373#) for an intuitive solution,
but this task seems fixed to me.
There is also no expansion to curve when not needed. The start path is the
'backmost' one, the order in which the paths get connected is from back to
front, pairwise.
Setting to fixed and closing.
Comment 14 Armin Le Grand 2009-12-29 13:08:15 UTC
W: Closing.