diff options
Diffstat (limited to 'sdext/source/pdfimport/misc/pdfihelper.cxx')
-rw-r--r-- | sdext/source/pdfimport/misc/pdfihelper.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx index 862f11b5989f..692ba8731b01 100644 --- a/sdext/source/pdfimport/misc/pdfihelper.cxx +++ b/sdext/source/pdfimport/misc/pdfihelper.cxx @@ -96,12 +96,17 @@ OUString pdfi::getColorString( const rendering::ARGBColor& rCol ) aBuf.append( '0' ); aBuf.append( sal_Int32(nBlue), 16 ); - // TODO(F3): respect alpha transparency (polygons etc.) - OSL_ASSERT(rCol.Alpha == 1.0); - return aBuf.makeStringAndClear(); } +OUString pdfi::getPercentString(double value) +{ + OUStringBuffer buf(32); + buf.append(value); + buf.appendAscii("%"); + return buf.makeStringAndClear(); +} + OUString pdfi::unitMMString( double fMM ) { OUStringBuffer aBuf( 32 ); |