mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug #72790
This commit is contained in:
@ -3321,19 +3321,23 @@ void odf_drawing_context::end_image()
|
|||||||
end_shape();
|
end_shape();
|
||||||
return;
|
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_drawing_state_.flipH_)
|
||||||
{
|
{
|
||||||
if (impl_->current_graphic_properties->style_mirror_)
|
if (impl_->current_graphic_properties->style_mirror_)
|
||||||
impl_->current_graphic_properties->style_mirror_ = *impl_->current_graphic_properties->style_mirror_ + std::wstring(L" horizontal");
|
impl_->current_graphic_properties->style_mirror_ = *impl_->current_graphic_properties->style_mirror_ + std::wstring(L" horizontal");
|
||||||
else
|
else
|
||||||
impl_->current_graphic_properties->style_mirror_ = std::wstring(L"horizontal");
|
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_element();
|
||||||
end_frame();
|
end_frame();
|
||||||
|
|||||||
Reference in New Issue
Block a user