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

Vort vvort at yandex.ru
Tue Feb 18 21:19:42 CET 2014


 sdext/source/pdfimport/misc/pdfihelper.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 988b695bcc0013d482855b81330e10fdb3448b8b
Author: Vort <vvort at yandex.ru>
Date:   Tue Feb 18 16:09:47 2014 +0200

    fdo#37246 PDF Import: Color to string conversion fix
    
    Change-Id: I5ec9f0246f6c2d1b12a389906d04133b2f5a6f9f
    Reviewed-on: https://gerrit.libreoffice.org/8106
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx
index 7a42014..8204ad3 100644
--- a/sdext/source/pdfimport/misc/pdfihelper.cxx
+++ b/sdext/source/pdfimport/misc/pdfihelper.cxx
@@ -33,13 +33,13 @@ OUString pdfi::getColorString( const rendering::ARGBColor& rCol )
     const sal_uInt8 nGreen( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Green * 255.0 ) ) );
     const sal_uInt8 nBlue ( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Blue * 255.0 ) ) );
     aBuf.append( '#' );
-    if( nRed < 10 )
+    if( nRed < 16 )
         aBuf.append( '0' );
     aBuf.append( sal_Int32(nRed), 16 );
-    if( nGreen < 10 )
+    if( nGreen < 16 )
         aBuf.append( '0' );
     aBuf.append( sal_Int32(nGreen), 16 );
-    if( nBlue < 10 )
+    if( nBlue < 16 )
         aBuf.append( '0' );
     aBuf.append( sal_Int32(nBlue), 16 );
 


More information about the Libreoffice-commits mailing list