summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-04-13 23:06:58 +0200
committerLuboš Luňák <l.lunak@collabora.com>2014-04-13 23:09:00 +0200
commitaf51f3fb5aee469423b154958ccb3fe61284122f (patch)
treee0fe0f9080f574c41ae9cb8607fa65107ff9e066
parentae59446aabbb99fe3c92865428812fd884f2579c (diff)
handle .doc cropping also inside groups (fdo#38411)
Writer does handle cropping on its own, but only for "toplevel" images, not for those inside groups, so there still use the generic code. Change-Id: I805a4cbd2d4cea7008e0322688ccd7f35a6d4a2c
-rw-r--r--filter/source/msfilter/msdffimp.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index ff8a9b3624fc..8d6457b33940 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -3752,8 +3752,9 @@ SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItemSet& rSet, cons
}
if ( bGrfRead )
{
- // the writer is doing it's own cropping, so this part affects only impress and calc
- if ( GetSvxMSDffSettings() & SVXMSDFF_SETTINGS_CROP_BITMAPS )
+ // the writer is doing its own cropping, so this part affects only impress and calc,
+ // unless we're inside a group, in which case writer doesn't crop either
+ if (( GetSvxMSDffSettings() & SVXMSDFF_SETTINGS_CROP_BITMAPS ) || rObjData.nCalledByGroup != 0 )
lcl_ApplyCropping( *this, ( rObjData.nSpFlags & SP_FOLESHAPE ) == 0 ? &rSet : NULL, aGraf );
if ( IsProperty( DFF_Prop_pictureTransparent ) )