Bugzilla – Attachment 41128 Details for
Bug 32330
The pdfimport extension draws the pdfs corrupted.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix
0001-Fix-filled-polygons-on-pdfimport.patch (text/plain), 1.13 KB, created by
Thorsten Behrens (allotropia)
on 2010-12-14 17:38:34 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Thorsten Behrens (allotropia)
Created:
2010-12-14 17:38:34 UTC
Size:
1.13 KB
patch
obsolete
>From e455af833b31e3d5e8f7fa32a24ea44e53126baa Mon Sep 17 00:00:00 2001 >From: Thorsten Behrens <tbehrens@novell.com> >Date: Wed, 15 Dec 2010 02:32:07 +0100 >Subject: [PATCH] Fix filled polygons on pdfimport > >This fixes fdo#32330, by explicitely closing filled polygons on >ODF streaming-out. LibO does not fill polygons, even if specifically >asked to - unless they're closed on coordinate level. >--- > sdext/source/pdfimport/tree/genericelements.cxx | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/sdext/source/pdfimport/tree/genericelements.cxx b/sdext/source/pdfimport/tree/genericelements.cxx >index 5242a6b..d8696dd 100644 >--- a/sdext/source/pdfimport/tree/genericelements.cxx >+++ b/sdext/source/pdfimport/tree/genericelements.cxx >@@ -164,6 +164,10 @@ void PolyPolyElement::updateGeometry() > y = aRange.getMinY(); > w = aRange.getWidth(); > h = aRange.getHeight(); >+ >+ // fdo#32330 - non-closed paths will not show up filled in LibO >+ if( Action & (PATH_FILL | PATH_EOFILL) ) >+ PolyPoly.setClosed(true); > } > > void PolyPolyElement::visitedBy( ElementTreeVisitor& rVisitor, >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 32330
:
41025
|
41026
|
41027
| 41128