Skip to content

Commit

Permalink
Merge pull request 'Fix bug #72790' (#223) from fix/bug72790 into hot…
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Feb 11, 2025
2 parents 7d3488a + 1cb56e5 commit 3889516
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions OdfFile/Writer/Format/odf_drawing_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3889516

Please sign in to comment.