Fixing Indentation RTL bug
Change-Id: Ie8c3d30cb28afb97d4ded4ac67241ed18ab9e50c Reviewed-on: https://gerrit.libreoffice.org/3651 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
This commit is contained in:
BIN
sw/qa/extras/ooxmlimport/data/indentation.docx
Executable file
BIN
sw/qa/extras/ooxmlimport/data/indentation.docx
Executable file
Binary file not shown.
@@ -52,6 +52,8 @@ static const sal_uInt8 cFieldStart = 0x13;
|
||||
static const sal_uInt8 cFieldSep = 0x14;
|
||||
static const sal_uInt8 cFieldEnd = 0x15;
|
||||
|
||||
static const sal_uInt16 paragraphProperties_sprmPFBiDi = 0x2441;
|
||||
|
||||
namespace writerfilter {
|
||||
namespace ooxml
|
||||
{
|
||||
@@ -1596,7 +1598,19 @@ void OOXMLFastContextHandlerValue::setDefaultBooleanValue()
|
||||
|
||||
if (mpValue.get() == NULL)
|
||||
{
|
||||
OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(true));
|
||||
// Value should not always be 'true'
|
||||
//OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(true));
|
||||
bool bSet = true;
|
||||
|
||||
// Paragraph properties are not always 'true' by default
|
||||
// For example - RTL layout of paragraph is by default 'false' (look in this link for 'sprmPFBiDi')
|
||||
// http://msdn.microsoft.com/en-us/library/dd923496%28v=office.12%29.aspx
|
||||
if (getId() == paragraphProperties_sprmPFBiDi)
|
||||
{
|
||||
bSet = false;
|
||||
}
|
||||
|
||||
OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(bSet));
|
||||
setValue(pValue);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user