[Libreoffice-commits] .: Branch 'libreoffice-3-5' - svx/source

Petr Mladek pmladek at kemper.freedesktop.org
Tue Mar 20 01:45:57 PDT 2012


 svx/source/items/algitem.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 85c6043d0d339d3df6a4037eedce78df38272ea6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 18 16:36:54 2012 +0100

    Fix redundant assignment of "nAngle" in switch
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx
index ff93abb..5fa6d82 100644
--- a/svx/source/items/algitem.cxx
+++ b/svx/source/items/algitem.cxx
@@ -180,8 +180,8 @@ sal_Int32 SvxOrientationItem::GetRotation( sal_Int32 nStdAngle ) const
     sal_Int32 nAngle = nStdAngle;
     switch( static_cast< SvxCellOrientation >( GetValue() ) )
     {
-        case SVX_ORIENTATION_BOTTOMTOP: nAngle = 9000;
-        case SVX_ORIENTATION_TOPBOTTOM: nAngle = 27000;
+        case SVX_ORIENTATION_BOTTOMTOP: nAngle = 9000;break;
+        case SVX_ORIENTATION_TOPBOTTOM: nAngle = 27000;break;
         default: ; //prevent warning
     }
     return nAngle;


More information about the Libreoffice-commits mailing list