Message info
 
To:libreoffice-commits@lists.freedesktop.org From:Julien Nabet Subject:[Libreoffice-commits] .: svx/source Date:Sun, 18 Mar 2012 08:38:12 -0700 (PDT)
 

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

New commits:
commit 49d7d4b3255f731ce9a8b5256da25f6a9bf53169
Author: Julien Nabet <serval2412@yahoo.fr>
Date: Sun Mar 18 16:36:54 2012 +0100

Fix redundant assignment of "nAngle" in switch

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;
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits