Merge pull request 'Fix bug #72790' (#223) from fix/bug72790 into hotfix/v8.3.1

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/223
This commit is contained in:
Elena Subbotina
2025-02-11 18:08:55 +00:00

View File

@ -3325,19 +3325,23 @@ void odf_drawing_context::end_image()
end_shape();
return;
}
if (impl_->current_drawing_state_.flipV_)
{
if (impl_->current_drawing_state_.rotateAngle_)
*impl_->current_drawing_state_.rotateAngle_ -= 3.1415926535;
else
impl_->current_drawing_state_.rotateAngle_ = -3.1415926535;
impl_->current_drawing_state_.flipH_ = !impl_->current_drawing_state_.flipH_;
}
if (impl_->current_drawing_state_.flipH_)
{
if (impl_->current_graphic_properties->style_mirror_)
impl_->current_graphic_properties->style_mirror_ = *impl_->current_graphic_properties->style_mirror_ + std::wstring(L" horizontal");
else
impl_->current_graphic_properties->style_mirror_ = std::wstring(L"horizontal");
}
if (impl_->current_drawing_state_.flipV_)
{
if (impl_->current_graphic_properties->style_mirror_)
impl_->current_graphic_properties->style_mirror_ = *impl_->current_graphic_properties->style_mirror_ + std::wstring(L" vertical");
else
impl_->current_graphic_properties->style_mirror_ = std::wstring(L"vertical");
}
end_element();
end_frame();