summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-10-20 18:28:07 +0200
committerAndras Timar <andras.timar@collabora.com>2020-05-17 10:37:46 +0200
commit584b9ec45d233bfb171643ed72854ff97c3c8338 (patch)
tree721cf27afd7b49c8dade1bfa2329334a6b2a559f
parent9b5b892736f01aaa1570fdb70f10dc41bcc862a2 (diff)
On insert image rotate automatically based on EXIF orientation tag
Change-Id: I55e3e76d7d21c7d0796ec9355f01479232018c66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/82085 Tested-by: Jenkins Reviewed-by: Marco Cecchetti <marco.cecchetti@collabora.com>
-rw-r--r--sw/source/uibase/uiview/view2.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index e26bb4e9f5c7..2885fa0af8e2 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -254,13 +254,8 @@ ErrCode SwView::InsertGraphic( const OUString &rPath, const OUString &rFilter,
const sal_uInt16 aRotation = aMetadata.getRotation();
if (aRotation != 0)
{
- std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(GetFrameWeld(), "modules/swriter/ui/queryrotateintostandarddialog.ui"));
- std::unique_ptr<weld::MessageDialog> xQueryBox(xBuilder->weld_message_dialog("QueryRotateIntoStandardOrientationDialog"));
- if (xQueryBox->run() == RET_YES)
- {
- GraphicNativeTransform aTransform( aGraphic );
- aTransform.rotate( aRotation );
- }
+ GraphicNativeTransform aTransform( aGraphic );
+ aTransform.rotate( aRotation );
}
}