diff options
Diffstat (limited to 'writerfilter/source/dmapper')
-rw-r--r-- | writerfilter/source/dmapper/GraphicImport.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index efcfa7e19b78..e64becaf97f1 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -926,6 +926,14 @@ void GraphicImport::lcl_attribute(Id nName, Value & val) xGraphProps->setPropertyValue( rtl::OUString("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( ); |