[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - writerfilter/source
SJacobi
Sven-Jacobi at gmx.de
Tue May 28 06:05:07 PDT 2013
writerfilter/source/dmapper/GraphicImport.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 4bdd125b06b4250fc528ad185a9a3434b49fe388
Author: SJacobi <Sven-Jacobi at gmx.de>
Date: Tue Mar 5 14:54:00 2013 +0100
docx import, fixed cropping
Change-Id: I910c2f769e88c5d9d17fc5bf072909b4b7f28ef0
Reviewed-on: https://gerrit.libreoffice.org/2557
Tested-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Reviewed-by: Joren De Cuyper <joren.libreoffice at telenet.be>
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 0f7865c..ed1800a 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -932,6 +932,14 @@ void GraphicImport::lcl_attribute(Id nName, Value & val)
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( );
More information about the Libreoffice-commits
mailing list