[Libreoffice-commits] .: oox/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Apr 7 12:16:18 PDT 2012


 oox/source/vml/vmlformatting.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c893a820c447c9014d35597a37c3220c261e35ae
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Apr 7 21:12:27 2012 +0200

    Fix Redundant assignment of "nModToken" in switch

diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx
index f7ebde4..4bc582d 100644
--- a/oox/source/vml/vmlformatting.cxx
+++ b/oox/source/vml/vmlformatting.cxx
@@ -248,7 +248,7 @@ bool lclExtractDouble( double& orfValue, sal_Int32& ornEndPos, const OUString& r
             sal_Int32 nModToken = XML_TOKEN_INVALID;
             switch( AttributeConversion::decodeToken( aColorIndex.copy( 0, nOpenParen ) ) )
             {
-                case XML_darken:    nModToken = XML_shade;
+                case XML_darken:    nModToken = XML_shade;break;
                 case XML_lighten:   nModToken = XML_tint;
             }
             sal_Int32 nValue = aColorIndex.copy( nOpenParen + 1, nCloseParen - nOpenParen - 1 ).toInt32();


More information about the Libreoffice-commits mailing list