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

Stephan Bergmann sbergman at redhat.com
Wed Oct 16 03:36:58 PDT 2013


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

New commits:
commit a0b389d682f10a78a0c0e2fc9188af22088b8de2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Oct 16 12:36:11 2013 +0200

    -Werror,-Wlogical-not-parentheses
    
    "logical not is only applied to the left hand side of this comparison"
    
    Change-Id: I015befe47ea9f40f83217b259e07eb01edb7d820

diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index f9aa426..69921c2 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -759,7 +759,7 @@ Reference < XShape > Shape::renderDiagramToGraphic( XmlFilterBase& rFilterBase )
 
         Graphic aGraphic;
         GraphicFilter aFilter( sal_False );
-        if ( !aFilter.ImportGraphic( aGraphic, "", mpTempStream, GRFILTER_FORMAT_NOTFOUND, NULL, 0, static_cast < Sequence < PropertyValue >* > ( NULL ), NULL ) == GRFILTER_OK )
+        if ( aFilter.ImportGraphic( aGraphic, "", mpTempStream, GRFILTER_FORMAT_NOTFOUND, NULL, 0, static_cast < Sequence < PropertyValue >* > ( NULL ), NULL ) != GRFILTER_OK )
         {
             SAL_WARN( "oox.drawingml", OSL_THIS_FUNC
                       << "Unable to import rendered stream into graphic object" );


More information about the Libreoffice-commits mailing list