summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-02-17 16:27:39 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-17 17:16:15 +0100
commitf7a7a5a686367aa775fef8d077bfdfec7b2fad82 (patch)
tree7fd60639ce18e630802e3f642635704605f3b63d /writerfilter
parentcd03b4ac54076b5471bfdddd8b3154ecb6b4e7cc (diff)
SwAnchoredDrawObject::GetObjBoundRect: ignore relative size of group shapes
Instead of not reading the relative size of group shapes at all, read it into the document model, just ignore it during painting. Visually this doesn't change anything, however this way we can write the information back to the file. Change-Id: Ic24fceaacec0f831d657a35e52493e1c0e9bf626
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/GraphicImport.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index f3d33cf07f47..2009bf54c851 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -955,8 +955,7 @@ void GraphicImport::lcl_sprm(Sprm & rSprm)
sal_Int16 nPositivePercentage = rtl::math::round(m_pImpl->m_rPositivePercentages.front().toDouble() / oox::drawingml::PER_PERCENT);
m_pImpl->m_rPositivePercentages.pop();
- uno::Reference<lang::XServiceInfo> xServiceInfo(m_xShape, uno::UNO_QUERY);
- if (nPositivePercentage && !xServiceInfo->supportsService("com.sun.star.drawing.GroupShape"))
+ if (nPositivePercentage)
{
uno::Reference<beans::XPropertySet> xPropertySet(m_xShape, uno::UNO_QUERY);
OUString aProperty = nSprmId == NS_ooxml::LN_CT_SizeRelH_pctWidth ? OUString("RelativeWidth") : OUString("RelativeHeight");