revert fix/bug56564

fix bug with uncorrected table of contents
This commit is contained in:
pluxury_lxrd
2025-08-28 08:25:05 +00:00
parent 518a38e178
commit 9b2b7263c2
3 changed files with 8 additions and 28 deletions

View File

@ -26,12 +26,17 @@ bundle_xcframeworks {
}
}
core_win_arm64 {
DEFINES += MICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS=0
}
core_windows {
VS_VERSION=140
VS_DEBUG=
VS_ARCH=x64
core_debug:VS_DEBUG=gd-
core_win_32:VS_ARCH=x32
core_win_arm64:VS_ARCH=a64
vs2019:VS_VERSION=142
BOOST_POSTFIX = -vc$${VS_VERSION}-mt-$${VS_DEBUG}$${VS_ARCH}-1_72

View File

@ -112,19 +112,8 @@ void tabs_context::add(const odf_reader::office_element_ptr & element, double ma
if (tab_stop)
{
tab_stop->margin_left = margin_left;
auto type = tab_stop->style_type_ ? tab_stop->style_type_->get_type() : odf_types::style_type::Left;
double pos;
if( type == odf_types::style_type::Right )
{
pos = tab_stop->style_position_.get_value_unit(odf_types::length::pt);
}
else
{
pos = margin_left + tab_stop->style_position_.get_value_unit(odf_types::length::pt);
}
double pos = margin_left + tab_stop->style_position_.get_value_unit(odf_types::length::pt);
std::map<int, odf_reader::office_element_ptr>::iterator pFind = clear_tabs.find((int)pos);

View File

@ -215,21 +215,7 @@ void calc_tab_stops(const style_instance * styleInstance, oox::tabs_context & co
context.reset();
for (size_t j = 0; j < tab_stops->content_.size(); j++)
{
odf_reader::style_tab_stop *tab = dynamic_cast<odf_reader::style_tab_stop*>(tab_stops->content_[j].get());
if( tab )
{
auto type = tab->style_type_ ? tab->style_type_->get_type() : odf_types::style_type::Left;
if( type == odf_types::style_type::Right )
{
context.add(tab_stops->content_[j], 0);
}
else
{
context.add(tab_stops->content_[j], margin_left);
}
}
context.add(tab_stops->content_[j], margin_left);
}
}
}