Kaydet (Commit) 3dcd8ca0 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Cleanup: remove silly extra scope.

üst a277042e
This diff is collapsed.
...@@ -2373,24 +2373,22 @@ bool PDFSalLayout::LayoutText( ImplLayoutArgs& rArgs ) ...@@ -2373,24 +2373,22 @@ bool PDFSalLayout::LayoutText( ImplLayoutArgs& rArgs )
if( bRightToLeft ) if( bRightToLeft )
cChar = static_cast<sal_Unicode>(GetMirroredChar( cChar )); cChar = static_cast<sal_Unicode>(GetMirroredChar( cChar ));
if( 1 ) // TODO: shortcut for ASCII? sal_Char aBuf[4];
{ sal_uInt32 nInfo;
sal_Char aBuf[4]; sal_Size nSrcCvtChars;
sal_uInt32 nInfo;
sal_Size nSrcCvtChars; sal_Size nConv = rtl_convertUnicodeToText( aConv,
NULL,
sal_Size nConv = rtl_convertUnicodeToText( aConv, &cChar, 1,
NULL, aBuf, sizeof(aBuf)/sizeof(*aBuf),
&cChar, 1, RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR,
aBuf, sizeof(aBuf)/sizeof(*aBuf), &nInfo, &nSrcCvtChars );
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR, // check whether conversion was possible
&nInfo, &nSrcCvtChars ); // else fallback font is needed as the standard fonts
// check whether conversion was possible // are handled via WinAnsi encoding
// else fallback font is needed as the standard fonts if( nConv > 0 )
// are handled via WinAnsi encoding cChar = ((sal_Unicode)aBuf[0]) & 0x00ff;
if( nConv > 0 )
cChar = ((sal_Unicode)aBuf[0]) & 0x00ff;
}
if( cChar & 0xff00 ) if( cChar & 0xff00 )
{ {
cChar = 0; // NotDef glyph cChar = 0; // NotDef glyph
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment