summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2021-11-29 21:26:03 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-30 09:51:14 +0100
commitcda9a5af36977420bae34737cd7b52cddb3226ef (patch)
treecaf057a8c7bc19488e85682e6c642fd7b6f1871f /sw/source/uibase/dochdl
parent557beef6a958f9fa67123ad5a8a232b467039030 (diff)
tdf#145819 Revert logic of the image-with-rotation dialog
Change-Id: Ibca1092699e3a7edd37161f421f3d369a4eb49a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126070 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 45e13b3272fd..7c9917a83825 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -426,7 +426,9 @@ namespace
{
std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(nullptr, "modules/swriter/ui/queryrotateintostandarddialog.ui"));
std::unique_ptr<weld::MessageDialog> xQueryBox(xBuilder->weld_message_dialog("QueryRotateIntoStandardOrientationDialog"));
- if (xQueryBox->run() == RET_YES)
+ // tdf#145819 Apply the rotation information if the user does NOT want to unrotate the image
+ // If they chose Yes we ignore the rotation
+ if (xQueryBox->run() == RET_NO)
{
GraphicNativeTransform aTransform( aGraphic );
aTransform.rotate( aRotation );