Bug 45028 - label of connector, ordinary lines and arrow gets written through line
Summary: label of connector, ordinary lines and arrow gets written through line
Status: RESOLVED FIXED
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Bartosz
URL:
Whiteboard:
Keywords:
: 91681 (view as bug list)
Depends on:
Blocks: Connectors
  Show dependency treegraph
 
Reported: 2012-01-21 04:27 UTC by hdv.jadev
Modified: 2024-10-28 19:21 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Horizontal connector with label (32.50 KB, application/vnd.visio)
2012-01-25 13:50 UTC, hdv.jadev
Details
Libre Office Draw document showing connectors and lines with text (12.38 KB, application/vnd.oasis.opendocument.graphics)
2014-09-03 22:06 UTC, Karl Behler
Details
lines as appear in Draw (3.55 KB, image/png)
2021-11-08 09:07 UTC, Valerio Messina
Details
lines as appear in Visio (6.43 KB, image/png)
2021-11-08 09:07 UTC, Valerio Messina
Details
lines as appear in Visio with background (9.98 KB, image/png)
2021-11-08 09:08 UTC, Valerio Messina
Details
Screenshot of current status on LO 7.2 (13.83 KB, image/png)
2021-11-08 09:21 UTC, hdv.jadev
Details
arrow with text on LO24.2 (271.89 KB, image/png)
2024-05-19 15:42 UTC, Valerio Messina
Details
Sample VSD with text on connector created with Visio 2003 (16.00 KB, application/vnd.visio)
2024-10-25 21:50 UTC, Bartosz
Details
Sample VSD with text on connector created with Visio 2003 exported to SVG (1.13 KB, image/svg+xml)
2024-10-25 21:51 UTC, Bartosz
Details
Sample of text placed on ordinary line (14.00 KB, application/vnd.visio)
2024-10-28 10:22 UTC, Bartosz
Details
line with text (166.65 KB, image/png)
2024-10-28 12:42 UTC, Valerio Messina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hdv.jadev 2012-01-21 04:27:13 UTC
When importing a Visio file that uses connectors, the labels corresponding with a connector get written over the line of the connector, creating a strikethrough effect. This makes reading the label harder. Also, the label is not really a property of the connector itself, but implemented as a separate text field. This makes it hard to keep things together when moving connectors around. It would be appreciated if this could be improved in a later version.
Comment 1 tester8 2012-01-25 09:12:17 UTC
Can you please upload example file for test?
Comment 2 hdv.jadev 2012-01-25 13:50:27 UTC
Created attachment 56162 [details]
Horizontal connector with label
Comment 3 hdv.jadev 2012-01-25 13:53:14 UTC
Comment on attachment 56162 [details]
Horizontal connector with label

Sorry, I cannot send you the file I used when I found this. I am not allowed to. Instead I made a simple example in Visio [1], but can't currently test if it shows the stated behavior. The machine with 3.5RC1 is in another city. As soon as I get there I'll fire it up to verify this test file does show the bug.

[1] In Visio 2003 open a new flowchart drawing, add 2 shapes and connect them with a "dynamic connector". Select the connector and press F2. Edit the label. Open this in LO3.5RC1 and you should see what I saw.
Comment 4 tester8 2012-01-26 12:44:04 UTC
>Sorry, I cannot send you the file I used when I found this. I am not allowed
>to. Instead I made a simple example in Visio [1]

If bug can be reproduced on a more simple file then more simple is better.

Reproduced with

LOdev 3.5.0rc1
e40af8c-10029e3-615e522-88673a2-727f724
Ubuntu 10.04.3 x86
Linux 2.6.32-37-generic Russian UI
Comment 5 Julien Nabet 2013-08-24 05:57:00 UTC
On pc Debian x86-64 with master sources updated yesterday, I reproduced the problem.

Fridrich: one for you?
Comment 6 Karl Behler 2014-09-03 22:06:26 UTC
Created attachment 105708 [details]
Libre Office Draw document showing connectors and lines with text
Comment 7 Karl Behler 2014-09-03 22:08:40 UTC
I would like to refresh the attention to this bug.
Bug 45028 seems to be related to this one.
All together it's looking like a principle insufficiency of the features available for placing and handling text on connectors. Please improve.

See attached example file for text on connectors, lines and test boxes overlayed to lines. It's impossible to place a text with white background just along and over a connector line.

The functional incompatibility betweeen LibreOffice and Visio still seems to be a serious issue in terms that it prohibits at least some people to move their VISIO documentation to LibreOffice.

If any improvement has been made since 3.5.0 RC1 it does not seem sufficient up to today (4.1.3.2).

The original text of the message of our colleagues:
(In German, but I'm willing to translate this if someone want's to work on this issue.) 

Liebe KollegInnen,

wir versuchen gerade eine größere Netzwerkzeichnung von
Visio nach LibreOffice (Draw) zu übertragen, um langfristig
den ganzen MS-Lizenzkram von uns zu schaffen.

Dabei habe ich nun aber ein simples Problem. Wenn man in
Visio zwei Objekte (siehe Anhang) miteinander verbindet,
dann läßt sich auf dem entsprechenden Konnektor ein Text
eintragen. Dieser Text wird automatisch in ein Rechteck
eingetragen, welches sich beliebig einfaerben laesst und
vor allem standardmaessig (Hintergrund) weiss ist und sich
so von der Konnektorlinie abhebt. Ferner kann man das Text-
feld auch noch frei positionieren.

Versucht man das mit LibreOfficeDraw (Version 4.1.3.2 portable),
dann ist per Default die Beschriftung abseits der Konnektor-
linie (s. Anhang). Mit einiger Mühe positioniert man den Text
(wenn man denn das nicht sichtbare Textfeld erwischt) an die
Stelle über der Linie und wenn man dann immer noch das Text-
feld angeklickt hat, kann man via rechter Maustaste auch eine
Flächenfüllung in bspw. Weiss angeben. Verschiebt man nun aber
ein Ende des Konnektors, dann zieht das Textfeld nicht mit.
Versucht man es mit einer Gruppierung, dann verliert der
Konnektor seine Funktion und es entsteht eine Art Rechteck
(s. Anhang).

Kann mir jemand verraten, wie man die gleiche Funktion eines
Konnektors wie unter Visio erhält?

Für Netzwerk-Zeichnungen sind die Konnektoren essentiell. Sollte
da aber scheitern, muessten wir bei Visio (tolles Tool, keine
Frage) bleiben.
Comment 8 Karl Behler 2014-09-03 22:10:16 UTC
(In reply to comment #7)
> Bug 45028 seems to be related to this one.
I meant Bug 43071.
Comment 9 Josh Pettus 2015-06-09 12:02:58 UTC
*** Bug 91681 has been marked as a duplicate of this bug. ***
Comment 10 Josh Pettus 2015-06-09 23:07:30 UTC
I don't know if it matters much, but this issue has actually been the case since open office .org
Comment 11 Heiko Tietze 2016-04-29 11:51:59 UTC
Good solution for this bug as well as #75301 would be to have all text styles feature for the connector's caption including background with transparency.
Comment 12 Heiko Tietze 2016-05-04 08:10:16 UTC
*** Bug 50961 has been marked as a duplicate of this bug. ***
Comment 13 Heiko Tietze 2016-05-04 08:14:49 UTC
(In reply to Heiko Tietze from comment #11)
> Good solution for this bug as well as #75301 would be to have all text
> styles feature for the connector's caption including background with
> transparency.

Of course it is possible to set the character highlight color right now. Have white as default instead of "no fill" would be good for lines and connectors -> EASYHACK.

Transparency is just a nice to have for long over-long captions.
Comment 14 jani 2016-05-04 14:18:39 UTC
Sounds like an easyHack, but it misses:
- codepointers (mandatory for easyHack)
- set the keyword skill<foo> and difficulty<foo>
- Optionally also set topic<foo>

Marking it as "NEEDING" for now.
Comment 15 Hans Deragon 2016-05-06 17:26:00 UTC
Am curious about how The Document Foundation produced that graphic without a hint of this bug.

https://commons.wikimedia.org/wiki/File:TDF_Orga.png
Comment 16 Hans Deragon 2016-05-09 13:25:10 UTC
This feature should be marked as "high".  Creating readable, uncluttered diagrams with connectors quickly is a must.  I would like to introduce LibreOffice Draw to colleagues, moving them away from Microsoft Visio, but my self am obliged to use Microsoft Visio because of this bug.  Sure, I can play around LO to get things right, adding text boxes instead of using connectors labels, etc...+ but that takes time and that is all the point.  The tool should be easy and make it possible to create great diagrams fast.  Productivity is a must.

Who can help us move this issue beyond "NEEDINFO"?
Comment 17 Julien Nabet 2016-05-09 13:34:32 UTC
Fridrich: though you might be interested in this tracker since it concerns Visio.
Comment 18 Heiko Tietze 2016-05-09 14:31:01 UTC
(In reply to Hans Deragon from comment #15)
> Am curious about how The Document Foundation produced that graphic without a
> hint of this bug.

Enter text to the connectors, go to sidebar properties > character or via context menu > character... and set highlighting to white.

EASYHACK (with NEEDINFO for the code pointers) because it's just the default that would be changed. However, the issue might be more complicated when the character highlighting of connector/line text is shared with all other type of objects.
Comment 19 Hans Deragon 2016-05-09 14:59:44 UTC
Oh... Great, the feature is implemented.  But here is why I was not able to find how to do this (new to LibreOffice Draw here, though familiar with the other LO tools).

If one right clicks on the connector's label, the right-click menu appears.  From there, I tried both 'Text' and 'Character', but under their respective dialog, there is no means to select the highlight colors.  I was not aware that this feature is available in the sidebar.

Would be nice that all features found in the sidebar are repeated in the dialogs.  

I am happy to learn that it is possible to change the background.  But I agree that it should be the default.  I must not be the first user scratching his head about this.

I say that fix it first quickly by setting the highlight to the same color as the one of the page.  Then create a new issue to address about the highlight shared by more than one object.  At least, new users will have a better feeling about the Draw first time they use it.
Comment 20 David Tardon 2016-05-10 05:35:24 UTC
(In reply to Julien Nabet from comment #17)
> Fridrich: though you might be interested in this tracker since it concerns
> Visio.

This ceased to have anything to do with Visio _import_ in comment 6 (that sample could never have been produced by libvisio, since it imports connectors as plain lines).
Comment 21 Fridrich Strba 2016-05-10 10:50:09 UTC
Julien, I removed myself from this list explicitly. Please refrain with adding me anew.
Comment 22 Heiko Tietze 2016-06-01 07:48:31 UTC
Please take care as well of connectors and have the same default background there too (cf. tdf#50961).

NEEDINFO removed since it didn't help to get the code pointer ;-)
Comment 23 Heiko Tietze 2016-06-01 07:49:25 UTC
(In reply to Heiko Tietze from comment #22)
> Please take care as well ...

of ordinary lines 

> and have the same default background there too (cf. tdf#50961).

Stupid me!
Comment 24 Valerio Messina 2016-06-01 09:17:03 UTC
yes thanks as requested in closed
https://bugs.documentfoundation.org/show_bug.cgi?id=50961
related to normal lines/arrow
Comment 25 Heiko Tietze 2016-06-28 15:12:56 UTC
NEEDINFO for the code pointers.
Comment 26 Valerio Messina 2016-06-29 09:26:17 UTC
changing the title adding "ordinary lines and arrow" will help keep track of all issue. Something like:
"label of connector, ordinary lines and arrow gets written through line"
Comment 27 jani 2016-09-15 15:24:29 UTC
The exact code pointer still missing, it seems to be something that needs changing over several files.
Comment 28 Xisco Faulí 2016-09-15 15:26:54 UTC
Removing keyword 'needsDevEval' as this bug is an easyHack
Comment 29 Xisco Faulí 2016-09-27 10:36:07 UTC Comment hidden (obsolete)
Comment 30 jani 2016-10-25 13:13:13 UTC
This seems to be a very complicated matter, something that requires experience with out import functionality
Comment 31 Hans Deragon 2016-10-31 13:42:42 UTC
This problem occurs with a fresh, newly created document.  It is not related with importing a document.  This is what makes this bug so sad... You draw a simple diagram with two objects and one connector, add text to the connector and voilà; this bug shows up.  Marketing wise, it kills selling LibreOffice.  This should be fixed, fast.

I reproduced the problem on Mac OSX, LibreOffice 5.2.2.2.
Comment 32 QA Administrators 2017-11-01 22:12:27 UTC Comment hidden (obsolete)
Comment 33 Reuben 2017-11-06 06:41:54 UTC
Version: 5.4.1.2.0+
Build ID: 1:5.4.1-1
CPU threads: 2; OS: Linux 4.12; UI render: default; VCL: x11; 
Locale: en-AU (en_AU.UTF-8); Calc: group
Comment 34 QA Administrators 2018-11-07 04:02:48 UTC Comment hidden (obsolete)
Comment 35 Reuben 2018-11-07 04:50:18 UTC
Still Occurring in LO6
Version: 6.1.3.1
Build ID: 1:6.1.3~rc1-2
CPU threads: 4; OS: Linux 4.18; UI render: GL; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); Calc: group threaded
Comment 36 hdv.jadev 2018-11-07 08:41:21 UTC
I tested it again today with LO 6.1.3.1 on Linux. Part of the bug is resolved. Part not. What is resolved is that after a Visio import the label of the connector is now indeed a property of the connector and not a separate object, as it was when I originally reported this bug. What is not resolved is that the label still gets written over the line of the connector, making it hard(er) to read. Of course you could make the background of the label opaque, but then that would give the impression that the connector was "broken" (split in two). This wouldn't be a problem if it were possible to explicitly give the label an offset from the line of the connector. That way one could decide to manually have the label above or below the line. Now one has to force the issue by adding an EOL character, which is ugly in my opinion.
Comment 37 Regina Henschel 2018-11-07 13:47:21 UTC
I have tested it with Version: 6.2.0.0.alpha1+ (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL

I see neither a connector nor a label. I get a group object, which contains a "line" and a "text frame".
Comment 38 QA Administrators 2019-11-08 03:38:17 UTC Comment hidden (obsolete)
Comment 39 Valerio Messina 2019-11-08 09:09:21 UTC
just tested on 6.2.8.2 x64 on Win64, the text is still through line.
Cannot test on 6.3
Comment 40 QA Administrators 2021-11-08 04:08:11 UTC Comment hidden (obsolete)
Comment 41 Valerio Messina 2021-11-08 09:07:15 UTC
Created attachment 176146 [details]
lines as appear in Draw
Comment 42 Valerio Messina 2021-11-08 09:07:45 UTC
Created attachment 176147 [details]
lines as appear in Visio
Comment 43 Valerio Messina 2021-11-08 09:08:23 UTC
Created attachment 176148 [details]
lines as appear in Visio with background
Comment 44 Valerio Messina 2021-11-08 09:09:06 UTC
I added the rendering from https://bugs.documentfoundation.org/show_bug.cgi?id=50961 of 2012 as are still valid for current LO
Comment 45 hdv.jadev 2021-11-08 09:21:53 UTC
Created attachment 176149 [details]
Screenshot of current status on LO 7.2
Comment 46 hdv.jadev 2021-11-08 09:26:13 UTC
Hmm, lost the contents of the comments. Attaching them again.

The issue still persists. See attached screenshot.

Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 32; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_NL.UTF-8); UI: en-US
Debian package version: 1:7.2.2-1
Calc: threaded
Comment 47 Heiko Tietze 2022-05-19 07:25:40 UTC
Was playing with the code [1] with the idea to make the character background white (depending on the page background) so the text background covers the line. This works well for lines but also affects text in shapes, which is not wanted. 

Theoretically, we could apply the color only for lines but I wonder if a dedicated drawing style would be better suited. It gives you more freedom, eg. opacity, highlight color etc. are possible.

[1] https://gerrit.libreoffice.org/c/core/+/131656
Comment 48 QA Administrators 2024-05-19 03:16:14 UTC Comment hidden (obsolete)
Comment 49 Valerio Messina 2024-05-19 09:42:57 UTC Comment hidden (noise)
Comment 50 Valerio Messina 2024-05-19 10:18:53 UTC Comment hidden (noise)
Comment 51 Regina Henschel 2024-05-19 11:08:34 UTC Comment hidden (noise)
Comment 52 Valerio Messina 2024-05-19 15:37:06 UTC
same results on Debian 12 with:

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-US (it_IT.UTF-8); UI: en-US
Calc: threaded
Comment 53 Valerio Messina 2024-05-19 15:42:01 UTC
Created attachment 194194 [details]
arrow with text on LO24.2
Comment 54 Valerio Messina 2024-05-19 15:44:28 UTC Comment hidden (noise)
Comment 55 Julien Nabet 2024-05-19 16:12:52 UTC Comment hidden (noise)
Comment 56 Regina Henschel 2024-05-19 16:32:12 UTC
The import of the Visio file sets the character background to White, so for that file the line does not go through the label.
Comment 57 Bartosz 2024-10-25 21:39:58 UTC
The issue for VSDX was resolved with commit:
https://gerrit.libreoffice.org/c/libvisio/+/174173

Please verify if the issue is resolved for VSD format.
Comment 58 Bartosz 2024-10-25 21:50:37 UTC
Created attachment 197244 [details]
Sample VSD with text on connector created with Visio 2003
Comment 59 Bartosz 2024-10-25 21:51:11 UTC
Created attachment 197245 [details]
Sample VSD with text on connector created with Visio 2003 exported to SVG
Comment 60 Bartosz 2024-10-25 21:51:55 UTC
It seems the issue was resolved for both VSD and VSDX.
Please confirm.
Comment 61 Heiko Tietze 2024-10-28 07:36:26 UTC
Text on ordinary lines still appears strike-trough. Suggestion was to use the document background for character highlighting - or some other fix color with full transparency, if possible.
Comment 62 Bartosz 2024-10-28 10:17:54 UTC
Thanks(In reply to Heiko Tietze from comment #61)
> Text on ordinary lines still appears strike-trough. Suggestion was to use
> the document background for character highlighting - or some other fix color
> with full transparency, if possible.

Please provide some Visio document, so I could compare it (Visio vs LibreOffice).
The last libvisio 0.1.8 was releases recently with:
https://gerrit.libreoffice.org/c/core/+/175442

and backported to libreoffice-24-8
Comment 63 Bartosz 2024-10-28 10:22:32 UTC
Created attachment 197270 [details]
Sample of text placed on ordinary line

For me, with libvisio 0.1.8 it is displayed correctly.
Comment 64 Heiko Tietze 2024-10-28 10:28:14 UTC
(In reply to Bartosz from comment #62)
> Please provide some Visio document...
It's a generic issue with text over lines.
Comment 65 Valerio Messina 2024-10-28 12:32:44 UTC
what is the first available version that include the fix, so we can test for RESOLVED FIXED?
Comment 66 Xisco Faulí 2024-10-28 12:34:44 UTC
(In reply to Valerio Messina from comment #65)
> what is the first available version that include the fix, so we can test for
> RESOLVED FIXED?

The daily builds already include the fix: https://dev-builds.libreoffice.org/daily/master/current.html
Comment 67 Valerio Messina 2024-10-28 12:42:56 UTC
Created attachment 197273 [details]
line with text
Comment 68 Valerio Messina 2024-10-28 12:43:50 UTC
attached a simple test "line with text" using 24.8.2.1 on Win64
Comment 69 Valerio Messina 2024-10-28 12:51:13 UTC
what is the difference between:
Win-x86_64@tb77-TDF
and
Win-x86_64@tb78-pollux-TDF_wix
?
Comment 70 Bartosz 2024-10-28 18:50:26 UTC
(In reply to Valerio Messina from comment #67)
> Created attachment 197273 [details]
> line with text

Original bug report was for libvisio, for VSD/VSDX import and I the issue was resolved.

For LibreOffice Draw, please create separate bug/feature report.
Comment 71 Valerio Messina 2024-10-28 19:21:04 UTC
I have done that:
https://bugs.documentfoundation.org/show_bug.cgi?id=50961
but was closed as duplicate of this one