Bugzilla – Attachment 130770 Details for
Bug 105620
Cairo pattern to be filled into path is placed incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested patch.
0001-tdf-105620-Fix-placement-of-image-embedded-in-graphi.patch (text/plain), 1.29 KB, created by
How can I remove my account?
on 2017-01-30 17:49:02 UTC
(
hide
)
Description:
Suggested patch.
Filename:
MIME Type:
Creator:
How can I remove my account?
Created:
2017-01-30 17:49:02 UTC
Size:
1.29 KB
patch
obsolete
>From df146d768c3ed11c232cedd28d2b3ff654e0cc1c Mon Sep 17 00:00:00 2001 >From: Tor Lillqvist <tml@collabora.com> >Date: Thu, 26 Jan 2017 08:41:59 +0200 >Subject: [PATCH] tdf#105620: Fix placement of image embedded in graphic > >Change-Id: I419e44d72f594fab0774152720f55c1d7d5366e6 >--- > canvas/source/cairo/cairo_canvashelper.cxx | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx >index e75300a..6e3100d 100644 >--- a/canvas/source/cairo/cairo_canvashelper.cxx >+++ b/canvas/source/cairo/cairo_canvashelper.cxx >@@ -795,6 +795,12 @@ namespace cairocanvas > > aScaledTextureMatrix.x0 = basegfx::fround( aScaledTextureMatrix.x0 ); > aScaledTextureMatrix.y0 = basegfx::fround( aScaledTextureMatrix.y0 ); >+ >+ double x1, y1, x2, y2; >+ cairo_path_extents(pCairo, &x1, &y1, &x2, &y2); >+ aScaledTextureMatrix.x0 = -(x1 * aScaledTextureMatrix.xx); >+ aScaledTextureMatrix.y0 = -(y1 * aScaledTextureMatrix.yy); >+ > cairo_pattern_set_matrix( pPattern, &aScaledTextureMatrix ); > > cairo_set_source( pCairo, pPattern ); >-- >2.9.3 >
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 105620
: 130770 |
130787