mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug #72790
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user