Author: hdu
Date: Thu Feb 28 15:26:29 2013
New Revision: 1451233

URL: http://svn.apache.org/r1451233
Log:
fix miscarried bitwise check in ppt::AnimationImporter

Modified:
    openoffice/trunk/main/sd/source/filter/ppt/pptinanimations.cxx

Modified: openoffice/trunk/main/sd/source/filter/ppt/pptinanimations.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/filter/ppt/pptinanimations.cxx?rev=1451233&r1=1451232&r2=1451233&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/filter/ppt/pptinanimations.cxx (original)
+++ openoffice/trunk/main/sd/source/filter/ppt/pptinanimations.cxx Thu Feb 28 
15:26:29 2013
@@ -2197,7 +2197,7 @@ void AnimationImporter::importCommandCon
                                mrStCtrl >> nBits;
                                mrStCtrl >> nCommandType;
 
-                               if( nBits && 1 )
+                               if( nBits & 1 )
                                {
                                        dump( " type=\"%s\"", (nCommandType == 
0) ? "event" : ( nCommandType == 1) ? "call" : "verb" );
                                }
@@ -2208,7 +2208,7 @@ void AnimationImporter::importCommandCon
                        {
                                if ( importAttributeValue( pChildAtom, aValue ) 
)
                                {
-                                       if( nBits && 2 )
+                                       if( nBits & 2 )
                                        {
                                                dump( " cmd=\"" );
                                                dump( aValue );


Reply via email to