Get style id from mapping table (column style)

Global mapping table styles_mapping should be used for column styles as well. It is already used for other styles.
This commit is contained in:
oliver-huetkoeper 2014-08-20 10:51:55 +02:00
parent 501aa04f22
commit a19bd1d984

View File

@ -3221,7 +3221,9 @@
* lv_value = <column_dimension>-column_dimension->get_xf_index( ). "del issue #157 - set column style
lv_style_guid = <column_dimension>-column_dimension->get_column_style_guid( ). "ins issue #157 - set column style
* lv_value = me->excel->get_style_index_in_styles( lv_style_guid ). "del issue #237
lv_style_index = me->excel->get_style_index_in_styles( lv_style_guid ). "ins issue #237
CLEAR ls_style_mapping.
READ TABLE styles_mapping INTO ls_style_mapping WITH KEY guid = lv_style_guid.
lv_style_index = ls_style_mapping-style.
IF lv_style_index > 0. "ins issue #237
lv_value = lv_style_index - 1. "ins issue #237
SHIFT lv_value RIGHT DELETING TRAILING space.