Issue 115092 - Dotted transparent lines disappear in edit mode
Summary: Dotted transparent lines disappear in edit mode
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Armin Le Grand
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-16 16:06 UTC by Rainer Bielefeld
Modified: 2013-02-24 21:22 UTC (History)
3 users (show)

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


Attachments
Sample document (642.45 KB, application/vnd.oasis.opendocument.spreadsheet)
2010-10-16 16:50 UTC, Rainer Bielefeld
no flags Details
reduced example (129.48 KB, application/vnd.oasis.opendocument.spreadsheet)
2010-10-20 10:17 UTC, IngridvdM
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Rainer Bielefeld 2010-10-16 16:06:43 UTC
Steps to reproduce:

1. download and open attached "sample0.ots"
2. select sheet "Diagramm1"
3. double click on chart and watch dotted line for "Logalux Unten 13B84T"
   Expected: chart edit mode will start, all lines remain visible
   Actual: Line for "Logalux Unten 13B84T" will disappear
           reappears after you left edit mode

You also can see that effect for other lines:

11. doble click chart for edit mode
12. Select line "Außen Temp" (in legend)
13. couble click selected line for line edit mode
14. select 'ultrafine dashed' <ok>
   expected: line view will change to 'ultrafine dashed'
   actual: line disappears
Comment 1 Rainer Bielefeld 2010-10-16 16:50:29 UTC
Created attachment 72075 [details]
Sample document
Comment 2 IngridvdM 2010-10-20 10:14:48 UTC
I can confirm the problem.
@aw, it seems that there is a limit of point count that can be rendered by the
primitives. If that limit is exceeded no line is visible at all. I remember that
we had a similar problem already but did not find the issue. The metafile in
contrary is able to render that amount of points.
I have reduced the example document so that only the line in question and a
surrounding rectangle is drawn. Double click the chart and the line does vanish,
while the rectangle is drawn. In case you see the dotted line in edit mode,
leave again, choose a bigger zoom factor and try again.
Comment 3 IngridvdM 2010-10-20 10:17:59 UTC
Created attachment 72111 [details]
reduced example
Comment 4 Armin Le Grand 2012-02-07 09:34:42 UTC
ALG: This has nothing to do with the number of points that can be rendered (BTW: Metafile is limited to 65535 while primitives use 2^32). It is an error in an optimization which was done exactly for big charts like this. The fat line drawing checks for actual linewidth and does some extras for > 1 to 3 to not paint fat line geometry. Above that the primitive decomposition is used. There is also a fallback when more than 1000 points are used to use the old VCL painter for resource reasons to not create all those decompositions and for speed reasons. There, a bool to check if this was done was used wrong /leading to the symptom that only the 1st segment of a dashed line is drawn).

ALG: This is an error which needs fixing, did so and checking functionality...
Comment 5 Armin Le Grand 2012-02-07 11:49:50 UTC
ALG: Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for various optimization scenarios. Comitted, done in r1241434.
Comment 6 Shan Zhu 2012-09-06 09:09:08 UTC
Verified on AOO350m1 build 9610. It works. Close it.