Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/2557
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/57/2557/1
docx import, fixed cropping
Change-Id: I910c2f769e88c5d9d17fc5bf072909b4b7f28ef0
---
M writerfilter/source/dmapper/GraphicImport.cxx
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx
b/writerfilter/source/dmapper/GraphicImport.cxx
index 10a17e6..6a0a2ce 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -932,6 +932,14 @@
xGraphProps->setPropertyValue("Width",
uno::makeAny( aSize.Width ) );
+ text::GraphicCrop aGraphicCrop( 0, 0, 0, 0 );
+ uno::Reference< beans::XPropertySet > xSourceGraphProps( xShape,
uno::UNO_QUERY );
+ uno::Any aAny = xSourceGraphProps->getPropertyValue(
rtl::OUString("GraphicCrop"));
+ if(aAny >>= aGraphicCrop) {
+ xGraphProps->setPropertyValue( rtl::OUString("GraphicCrop"),
+ uno::makeAny( aGraphicCrop ) );
+ }
+
// We need to drop the shape here somehow
uno::Reference< lang::XComponent > xShapeComponent( xShape,
uno::UNO_QUERY );
xShapeComponent->dispose( );
--
To view, visit https://gerrit.libreoffice.org/2557
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I910c2f769e88c5d9d17fc5bf072909b4b7f28ef0
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Sven Jacobi <Sven-Jacobi@gmx.de>
Context
- [PATCH] docx import, fixed cropping · Sven Jacobi (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.