diff options
author | Vort <vvort@yandex.ru> | 2014-02-18 16:09:47 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-18 20:19:17 +0000 |
commit | 988b695bcc0013d482855b81330e10fdb3448b8b (patch) | |
tree | 94c66d16e89d79ff286938f84f2362bef8fd5ffe /sdext | |
parent | corrected translation, thanks to Philipp Weissenbacher (diff) | |
download | core-988b695bcc0013d482855b81330e10fdb3448b8b.tar.gz core-988b695bcc0013d482855b81330e10fdb3448b8b.zip |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/misc/pdfihelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx index 7a4201460baf..8204ad3a6fc8 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 ); |