Bug 90414 - Text inside Folded Corner rendering at Draw is different when export to SVG
Summary: Text inside Folded Corner rendering at Draw is different when export to SVG
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: Other Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2015-04-02 15:15 UTC by Raniere Silva
Modified: 2018-12-06 14:58 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file with the bug (25.86 KB, application/vnd.oasis.opendocument.graphics)
2015-04-02 15:15 UTC, Raniere Silva
Details
screenshot of draw with sample file (102.81 KB, image/jpeg)
2015-04-02 15:16 UTC, Raniere Silva
Details
screenshot of eog with the exported SVG (63.34 KB, image/jpeg)
2015-04-02 15:17 UTC, Raniere Silva
Details
Screenshot of zoom level in which text touches object boundary (85.83 KB, image/png)
2015-04-10 01:19 UTC, Gabriel Diosan
Details
Screenshot of zoom level in which text is completely within object (80.16 KB, image/png)
2015-04-10 01:20 UTC, Gabriel Diosan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raniere Silva 2015-04-02 15:15:01 UTC
Created attachment 114559 [details]
sample file with the bug

## Summary

At Draw the text is inside folded corner but after export it to SVG part of the text is outside folded corner.

## Steps To Reproduce

1. Open the attach "sample file with the bug".
2. Go to "File" -> "Export" and export it to SVG.
3. Open the SVG with your web browser or some SVG reader.

## Actual Results

At the SVG the part of the text is outside the folded corner.

## Expected Results

At the SVG all the text is inside the folder corner.
Comment 1 Raniere Silva 2015-04-02 15:16:12 UTC
Created attachment 114560 [details]
screenshot of draw with sample file
Comment 2 Raniere Silva 2015-04-02 15:17:00 UTC
Created attachment 114561 [details]
screenshot of eog with the exported SVG
Comment 3 A (Andy) 2015-04-02 20:46:45 UTC
For me not reproducible with LO 4.4.1.2, Win 8.1.
Could you please mark which OS you are using.
Comment 4 Raniere Silva 2015-04-02 21:08:38 UTC
> For me not reproducible with LO 4.4.1.2, Win 8.1.
> Could you please mark which OS you are using.

I'm using GNU/Linux.

$ uname -a
Linux pupunha 3.19.2-1-ARCH #1 SMP PREEMPT Wed Mar 18 16:21:02 CET 2015 x86_64 GNU/Linux

I will try update LO to 4.4.2 on my machine and check again.
Comment 5 Raniere Silva 2015-04-03 03:56:00 UTC
Andy,

I update to "LibreOffice 4.4.1.2 40m0(Build:2)" and still having the problem.
Comment 6 A (Andy) 2015-04-03 08:29:30 UTC
(In reply to Raniere Silva from comment #5)
> Andy,
> 
> I update to "LibreOffice 4.4.1.2 40m0(Build:2)" and still having the problem.

Raniere,

Thank you very much for your fast reply and efforts.  It's maybe a Linux only issue.  Unfortunately, I can't test it and we have to wait if somebody else can reproduce it.
Comment 7 Gabriel Diosan 2015-04-10 01:18:44 UTC
Hi

So I tried to reproduce this bug and got some odd results.

I used:

LibreOffice 4.4.1.2 from the Ubuntu 15.04 repo

&

LibreOffice Version: 4.5.0.0.alpha0+
Build ID: b024e36ddb3b53163d7a01f6f7b5aadb7a858cd9
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-03-31_09:12:20
Locale: en_AU

Both running on Ubuntu Gnome 15.04.

In both cases when I exported the SVG and opened it in Firefox 37 and Gnome Image Viewer 3.14.4 the text remained within the object. However, I noticed that as I zoomed in and out the position of some text (in particular the string sl33v51a) will fall outside the object at certain zoom levels. At other zoom levels it appears fine.

I also created a quick test with a square and some text in a separate text box sitting over the top and I noticed that the text would move in relation to the square below it as I would zoom in and out. If the text sits within the object and not as a separate text box, the problem is not visible.

I will attach a screenshot or two to show the problem.

Gabriel
Comment 8 Gabriel Diosan 2015-04-10 01:19:55 UTC
Created attachment 114707 [details]
Screenshot of zoom level in which text touches object boundary
Comment 9 Gabriel Diosan 2015-04-10 01:20:50 UTC
Created attachment 114708 [details]
Screenshot of zoom level in which text is completely within object
Comment 10 Buovjaga 2015-04-16 16:07:16 UTC
I get the same result as Gabriel in 4.4, zooming and all.
In Image viewer (eog) 3.12.2, 100% zoom shows the right side of the letter a in sl33v51a slightly inside the edge of the container. With 200% zoom, there is padding between a and the edge.

Exported with an old version (3.6.7), the SVG has other issues, font is different and the title text is placed too high. Also, it tends to crash eog..
However, when playing with the zoom in Firefox, the letter a in the 3.6.7-exported SVG stays put in relation to the edge.

In an SVG exported from 4.2.0, the jumping sl33v51a is already present.

I'm marking this as a regression.

Ubuntu 14.10 64-bit 
Version: 4.4.2.2
Build ID: 40m0(Build:2)
Locale: en_US

Version 3.6.7.2 (Build ID: e183d5b)

Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 11 Robinson Tryon (qubit) 2015-12-14 05:32:46 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2016-10-07 10:28:50 UTC
Can be already reproduced in Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 13 QA Administrators 2017-10-23 14:02:21 UTC Comment hidden (obsolete)
Comment 14 Buovjaga 2018-05-25 17:38:38 UTC
sl33v51a still moving when zooming in Firefox.

Arch Linux 64-bit
Version: 6.1.0.0.alpha1+
Build ID: eeaf6dee2d278eaa037d95a756ad0ffab3314bc2
CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 24th 2018
Comment 15 Buovjaga 2018-07-02 17:45:39 UTC
Bibisected with 43all on Ubuntu 14.04 to range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=5b195fbcf7a441aeb193f6abd08b877e580938e0...7c4d3ea6ba4d42b4dda5148a00c8c411b5d7703d

It has several SVG export commits from Thorsten.

Adding Cc: to Thorsten Behrens
Comment 16 Roman Kuznetsov 2018-12-06 14:58:02 UTC
SVG from 

Версия: 6.2.0.0.beta1
ID сборки: d1b41307be3f8c19fe6f1938cf056e7ff1eb1d18
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; VCL: win; 
Локаль: ru-RU (ru_RU); UI-Language: ru-RU
Calc: threaded

looks fine

Status->WFM