The problem caused by following lines in EnhancedCustomShape2d.cxx:

>        if( !bLineGeometryNeededOnly )
>        {
>            // hack aNewB2DPolyPolygon to fill logic rect - this is
>            // needed to produce gradient fills that look like mso
>            aNewB2DPolygon.clear();
>            aNewB2DPolygon.append(basegfx::B2DPoint(0,0));
>            aNewB2DPolygon.setClosed(true);
>            aNewB2DPolyPolygon.append(aNewB2DPolygon);
> 
>            aNewB2DPolygon.clear();
>            aNewB2DPolygon.append(basegfx::B2DPoint(aLogicRect.GetWidth(),
>                                                    aLogicRect.GetHeight()));
>            aNewB2DPolygon.setClosed(true);
>            aNewB2DPolyPolygon.append(aNewB2DPolygon);
>        }

Disabling this codepath stops adding the points. Current AOO code
doesn't contain these lines.

This is added by:

author  Thorsten Behrens <tbehr...@novell.com>  2010-10-26 21:04:44 (GMT)
committer       Thorsten Behrens <tbehr...@novell.com>  2010-10-26 21:04:44 
(GMT)
commit  f64ef72743e55389e446e0d4bc6febd475011023
tree    13dacfb392466476bbe647c74520fa1e4eb860af
parent  5e1626f2cf40d4b52128d4464e838b8df0be55a7
> Better shading algo for customshapes, better gradients
> Some custom shapes can have shaded parts, like for example 3d can,
> the bevelled buttons etc. Those shaded colors are calculated
> internally, and have been way off at times. Now using HSV color
> space & the originally documented luminance modifications in steps
> of 10 percent. Compared to MSO, still no 100 percent match, but
> that seems due to gamma correction there.
> Additionally, starting with MSO12, gradients on those shaded surfaces
> look much better; adapted code to display gradients equally nice.
> 
> Note that most of this patch also applies to ooxml import; note as
> well that customshapes from *all* kind of input files (including ODF
> docs) now look different than before; no real way of changing this
> in a backward-compatible way, since behaviour of custom shapes is
> mandated (mostly) by internal tables, and not stored in a file.
> 
> Applies patches/dev300/ppt-customshape-shading-fix (much of it was
> accepted at OOo already, via i#102797)
> 
> Applies patches/dev300/ppt-customshape-shading-fix.diff: fixed prob
> with line arrows - the extra-added single point polygons lead to
> extra arrows randomly around the custom shape. i#105654

The problem isn't in PDF export, so removing filter:pdf keyword. To see
it on screen, one needs to disable OpenGL and AntiAliasing in
Tools->Options->LibreOffice->View. In older versions, one may look for
AntiAliasing in Expert Configuration or in config files.

The code was applied to OOo in i#102797, and was reverted later in
i#105654. However, they still were reproducible in Linux distros before
LO, possibly as part of GoOO (in 3.1 and 3.2 versions of OOo under SUSE
and Ubuntu: see https://bz.apache.org/ooo/show_bug.cgi?id=108658 and
https://bz.apache.org/ooo/show_bug.cgi?id=115511).

The OOo issue didn't contain any clear specifications or test cases,
only patches, neither are there any unit tests on this, so I cannot
check if reverting this part of commit breaks something.

A patch (that reverts these lines) is submitted for review:
https://gerrit.libreoffice.org/35498. Thorsten, I added you as reviewer.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/689349

Title:
  [Upstream] Draw file exported to PDF have erroneous pixel-sized dots
  in Acroread, not in Evince

Status in LibreOffice:
  Fix Released
Status in libreoffice package in Ubuntu:
  Fix Released
Status in openoffice.org package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: openoffice.org
  Binary package hint: libreoffice

  1) lsb_release -rd
  Description:  Ubuntu 12.10
  Release:      12.10

  2) apt-cache policy libreoffice-draw
  libreoffice-draw:
    Installed: 1:3.6.2~rc2-0ubuntu4
    Candidate: 1:3.6.2~rc2-0ubuntu4
    Version table:
   *** 1:3.6.2~rc2-0ubuntu4 0
          900 http://archive.ubuntu.com/ubuntu/ quantal-updates/main i386 
Packages
          400 http://archive.ubuntu.com/ubuntu/ quantal-proposed/main i386 
Packages
          100 /var/lib/dpkg/status
       1:3.6.2~rc2-0ubuntu3 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages

  apt-cache policy acroread
  acroread:
    Installed: 9.5.1-1precise1
    Candidate: 9.5.1-1precise1
    Version table:
   *** 9.5.1-1precise1 0
          100 /var/lib/dpkg/status

  apt-cache policy evince
  evince:
    Installed: 3.6.0-0ubuntu2
    Candidate: 3.6.0-0ubuntu2
    Version table:
   *** 3.6.0-0ubuntu2 0
          500 http://archive.ubuntu.com/ubuntu/ quantal/main i386 Packages
          100 /var/lib/dpkg/status

  3) What is expected to happen is when one performs at the Terminal:
  cd ~/Desktop && wget 
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/689349/+attachment/1763870/+files/classnetwork.odg
 && unoconv --listener && unoconv -f pdf classnetwork.odg && acroread 
classnetwork.pdf

  is it looks as it does in Evince.

  4) What happens instead is acroread displays erroneous pixel-sized
  dots as per screenshot
  
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/689349/+attachment/1763844/+files/garbagescreenshot.png
  , while evince does not.

  First reproduced in Maverick 1:3.3.1-1ubuntu3~maverick1, and
  reproduced in Natty, and Precise.

  Unconfirmed OOo WORKAROUND: The upstream version does _not_ produce
  these effects and is fine.

  ApportVersion: 2.6.1-0ubuntu6
  Architecture: i386
  CheckboxSubmission: 30b6638832e19720cfe8f7a91e5798a4
  CheckboxSystem: 2954e74ba17fb0e37fc942cd1d9fab4e
  DistroRelease: Ubuntu 12.10
  InstallationDate: Installed on 2012-06-11 (164 days ago)
  InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Alpha i386 (20120131.1)
  MarkForUpload: True
  Package: libreoffice 1:3.6.2~rc2-0ubuntu4
  PackageArchitecture: i386
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
  Tags: quantal
  Uname: Linux 3.5.0-17-generic i686
  UpgradeStatus: Upgraded to quantal on 2012-09-14 (68 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/689349/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to