You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/02/27 15:21:49 UTC

svn commit: r1450782 - /openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx

Author: hdu
Date: Wed Feb 27 14:21:48 2013
New Revision: 1450782

URL: http://svn.apache.org/r1450782
Log:
WaE: fix if-condition with mixed-up assignment vs. comparison

Modified:
    openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx

Modified: openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx?rev=1450782&r1=1450781&r2=1450782&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx (original)
+++ openoffice/trunk/main/vcl/source/gdi/pdfwriter_impl.cxx Wed Feb 27 14:21:48 2013
@@ -6559,7 +6559,7 @@ bool PDFWriterImpl::emitTrailer()
     aLine.append( "/Root " );
     aLine.append( m_nCatalogObject );
     aLine.append( " 0 R\n" );
-    if( nSecObject |= 0 )
+    if( nSecObject )
     {
         aLine.append( "/Encrypt ");
         aLine.append( nSecObject );