Commit 303b62c2 authored by ElenaSubbotina's avatar ElenaSubbotina

DocFormatReader - fix users file

parent 5109acb8
...@@ -87,8 +87,8 @@ namespace DocFileFormat ...@@ -87,8 +87,8 @@ namespace DocFileFormat
case sprmOldTDefTable: case sprmOldTDefTable:
case sprmTDefTable: case sprmTDefTable:
{ //table definition {
//table definition
SprmTDefTable tDef( iter->Arguments, iter->argumentsSize ); SprmTDefTable tDef( iter->Arguments, iter->argumentsSize );
//Workaround for retrieving the indent of the table: //Workaround for retrieving the indent of the table:
//In some files there is a indent but no sprmTWidthIndent is set. //In some files there is a indent but no sprmTWidthIndent is set.
......
...@@ -866,12 +866,14 @@ void common_draw_docx_convert(oox::docx_conversion_context & Context, const unio ...@@ -866,12 +866,14 @@ void common_draw_docx_convert(oox::docx_conversion_context & Context, const unio
if (attlists_.rel_size_.style_rel_width_) if (attlists_.rel_size_.style_rel_width_)
{ {
int type = attlists_.rel_size_.style_rel_width_->get_type(); int type = attlists_.rel_size_.style_rel_width_->get_type();
if (type == odf_types::percent_or_scale::Percent) if (type == odf_types::percent_or_scale::Percent)
drawing.pctWidth = attlists_.rel_size_.style_rel_width_->get_percent().get_value(); drawing.pctWidth = attlists_.rel_size_.style_rel_width_->get_percent().get_value();
} }
if (attlists_.rel_size_.style_rel_height_ ) if (attlists_.rel_size_.style_rel_height_ )
{ {
int type = attlists_.rel_size_.style_rel_height_->get_type(); int type = attlists_.rel_size_.style_rel_height_->get_type();
if (type == odf_types::percent_or_scale::Percent) if (type == odf_types::percent_or_scale::Percent)
drawing.pctHeight = attlists_.rel_size_.style_rel_height_->get_percent().get_value(); drawing.pctHeight = attlists_.rel_size_.style_rel_height_->get_percent().get_value();
} }
......
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