[Libreoffice-commits] core.git: sd/source

Tor Lillqvist tml at iki.fi
Tue Mar 12 23:08:53 PDT 2013


 sd/source/filter/eppt/pptx-text.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0451325ae7456da5812564428d73b0226606450f
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Mar 13 08:05:39 2013 +0200

    WaE: enumeration value not handled in switch
    
    So just switch on the integer value instead. Whether the missing enumerations
    can occur here and whether not handling them causes a bug or not, I don't
    know.
    
    Change-Id: Ib96b855739e8a1e92f72a88c3f6f106d86989d23

diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index 4e6ca95..534a31b 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -878,7 +878,7 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, sal_Int1
                 PortionObj* pPortion = front();
                 CalculateGraphicBulletSize( ( pPortion ) ? pPortion->mnCharHeight : 24 );
 
-                switch( (SvxExtNumType)nNumberingType )
+                switch( nNumberingType )
                 {
                     case SVX_NUM_NUMBER_NONE : nParaFlags |= 0xf; break;
 


More information about the Libreoffice-commits mailing list