summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index 391e71abc4b8..6d8567e6196d 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -458,8 +458,8 @@ sal_Int32 Parser::parseFontCheckForString(
if (tolower(pCopy[i]) != pAttrib[i]
&& toupper(pCopy[i]) != pAttrib[i])
return 0;
- rResult.isItalic = bItalic;
- rResult.isBold = bBold;
+ rResult.isItalic |= bItalic;
+ rResult.isBold |= bBold;
return nAttribLen;
}
@@ -488,6 +488,7 @@ void Parser::parseFontFamilyName( FontAttributes& rResult )
nLen -= 7;
}
+ // TODO: Looks like this block needs to be refactored
while( nLen )
{
if (parseFontRemoveSuffix(pCopy, nLen, RTL_CONSTASCII_STRINGPARAM("PSMT")))