This commit is contained in:
Kamil Kerimov
2025-02-03 15:39:18 +05:00
parent 81a4d9ccd0
commit 1cb56e532c

View File

@ -3321,19 +3321,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();