diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 09:22:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-26 09:22:05 +0000 |
commit | aaa142512395d5d792013deb73bf9eef0b4cc19e (patch) | |
tree | e7510ea100fa3ebf95eec39b96e6b7da024d9f63 | |
parent | e84849a735ee0e8e51f5da5561f5dfa550bbf81f (diff) |
WaE: gcc 4.6.0 various warnings
-rw-r--r-- | sw/source/filter/ww1/w1sprm.cxx | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/sw/source/filter/ww1/w1sprm.cxx b/sw/source/filter/ww1/w1sprm.cxx index 1b58e4aad0..11a66f9bb7 100644 --- a/sw/source/filter/ww1/w1sprm.cxx +++ b/sw/source/filter/ww1/w1sprm.cxx @@ -584,32 +584,17 @@ void Ww1SingleSprmPpc::Start( return; // nicht RndStdIds eAnchor; // Bindung - sal_Int16 eHRel; // Seite oder Seitenrand - sal_Int16 eVRel; // Seite oder Seitenrand - - switch ( ( nPpc & 0x30 ) >> 4 ){ // Y - Bindung bestimmt Sw-Bindung - case 0: eAnchor = FLY_AT_PARA; // Vert Margin - eVRel = text::RelOrientation::PRINT_AREA; + switch ( ( nPpc & 0x30 ) >> 4 ) // Y - Bindung bestimmt Sw-Bindung + { + case 0: + eAnchor = FLY_AT_PARA; // Vert Margin break; - - default:eAnchor = FLY_AT_PAGE; // Vert Page oder unknown - eVRel = text::RelOrientation::FRAME; + default: + eAnchor = FLY_AT_PAGE; // Vert Page oder unknown break; // 2=Vert. Paragraph, 3=Use Default } - switch ( ( nPpc & 0xc0 ) >> 6 ){ // X - Bindung -> Koordinatentransformation - case 0: // Hor. Spalte - case 1: // Hor. Absatz - eHRel = text::RelOrientation::PRINT_AREA; - - break; - - default: - eHRel = text::RelOrientation::FRAME; - break; - } - if( !rOut.IsInFly() && rMan.IsInStyle() ){ rOut.BeginFly( eAnchor ); // Starte StyleFly }else{ |