summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2021-12-09 15:55:16 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-12-20 15:24:39 +0100
commitdd5e7b2120898b96132ed4d330adb597991c1f6b (patch)
tree4d14e4334b56ec67ed1d5870b7f0bdf9f11c6dec /sw/source
parentda443a15694313cb1229dd818dd75f576ab658a2 (diff)
tdf#146019 Remove confirmation dialog about applying images EXIF rotation
Change-Id: I53553f91eeb5bd56bbad19b80421177a84625d96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126616 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127151
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index 13cfd30db09c..a7a11bbb99f7 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -424,15 +424,8 @@ namespace
Degree10 aRotation = aMetadata.getRotation();
if (aRotation)
{
- 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"));
- // 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 );
- }
+ GraphicNativeTransform aTransform( aGraphic );
+ aTransform.rotate( aRotation );
}
}
}