diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-19 10:44:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-19 10:44:50 +0100 |
commit | e96eaea07dde9a375c4d771c27ee7e7da9ef53b6 (patch) | |
tree | 4ecd9b018a3d7821bede0298a3d0b3c5a2d7c35f /filter | |
parent | ef219e719116fd02030503d4711b22894b9208c9 (diff) |
-Werror=misleading-indentation (GCC 6)
Change-Id: Idcb4386f37d4f945301934e4f2e65d81cf1db2bd
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 8e5d8ae0a68c..e88d9e85d411 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -2215,11 +2215,26 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt nCnt = (sal_Int16)( nTmp & 0x1fff );//Last 13 bits for segment points number switch( nTmp >> 13 )//First 3 bits for command type { - case 0x0: nCommand = EnhancedCustomShapeSegmentCommand::LINETO; if ( !nCnt ) nCnt = 1; break; - case 0x1: nCommand = EnhancedCustomShapeSegmentCommand::CURVETO; if ( !nCnt ) nCnt = 1; break; - case 0x2: nCommand = EnhancedCustomShapeSegmentCommand::MOVETO; if ( !nCnt ) nCnt = 1; break; - case 0x3: nCommand = EnhancedCustomShapeSegmentCommand::CLOSESUBPATH; nCnt = 0; break; - case 0x4: nCommand = EnhancedCustomShapeSegmentCommand::ENDSUBPATH; nCnt = 0; break; + case 0x0: + nCommand = EnhancedCustomShapeSegmentCommand::LINETO; + if ( !nCnt ) nCnt = 1; + break; + case 0x1: + nCommand = EnhancedCustomShapeSegmentCommand::CURVETO; + if ( !nCnt ) nCnt = 1; + break; + case 0x2: + nCommand = EnhancedCustomShapeSegmentCommand::MOVETO; + if ( !nCnt ) nCnt = 1; + break; + case 0x3: + nCommand = EnhancedCustomShapeSegmentCommand::CLOSESUBPATH; + nCnt = 0; + break; + case 0x4: + nCommand = EnhancedCustomShapeSegmentCommand::ENDSUBPATH; + nCnt = 0; + break; case 0x5: case 0x6: { |