From ad6ad5385cae9edc9db1f5dd9c9686623af9e997 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 9 Dec 2014 22:20:25 +0100 Subject: [PATCH] fix PNG export of whole Draw page --- 0001-fdo-37682-paint-the-right-area.patch | 26 +++++++++++++++++++++++ libreoffice.spec | 1 + 2 files changed, 27 insertions(+) create mode 100644 0001-fdo-37682-paint-the-right-area.patch diff --git a/0001-fdo-37682-paint-the-right-area.patch b/0001-fdo-37682-paint-the-right-area.patch new file mode 100644 index 0000000..6506487 --- /dev/null +++ b/0001-fdo-37682-paint-the-right-area.patch @@ -0,0 +1,26 @@ +From a68a7b831a5d1756ea9428e12bb89f69dc30950f Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Tue, 9 Dec 2014 22:12:03 +0100 +Subject: [PATCH] fdo#37682 paint the right area + +Change-Id: Ic3d1f6e47bf068e60dca711c97e3f6b194d14049 +--- + svx/source/unodraw/UnoGraphicExporter.cxx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx +index b884528..30b6727 100644 +--- a/svx/source/unodraw/UnoGraphicExporter.cxx ++++ b/svx/source/unodraw/UnoGraphicExporter.cxx +@@ -763,7 +763,7 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, + // Use new StandardCheckVisisbilityRedirector + ImplExportCheckVisisbilityRedirector aRedirector( mpCurrentPage ); + +- pView->CompleteRedraw(&aVDev, vcl::Region(Rectangle(Point(), aNewSize)), &aRedirector); ++ pView->CompleteRedraw(&aVDev, vcl::Region(Rectangle(aNewOrg, aNewSize)), &aRedirector); + + aVDev.Pop(); + +-- +2.1.0 + diff --git a/libreoffice.spec b/libreoffice.spec index 1207d8c..efad678 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -325,6 +325,7 @@ Patch17: 0001-Resolves-fdo-37559-revert-adding-extra-dummy-polygon.patch Patch18: 0001-Revert-No-need-to-have-OpenCL-optional-at-configure-.patch Patch19: 0001-Don-t-treat-clew-as-part-of-an-external-clcc-module.patch Patch20: 0001-don-t-copy-stylesheet-s-HelpID-if-this-s-a-rename.patch +Patch21: 0001-fdo-37682-paint-the-right-area.patch %define instdir %{_libdir} %define baseinstdir %{instdir}/libreoffice