diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2019-10-20 18:28:07 +0200 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2020-03-06 10:39:26 +0100 |
commit | baadefe9cb8e6745493b0c383e1d66ff3905d153 (patch) | |
tree | 53e99d2438f5f46392ed4af4468f6249d2922fdd /sw | |
parent | fa74c7f7613792ff191a6d4597274078dadbe8d8 (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>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 0bd28349a48a..51839ef25dc2 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -235,13 +235,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 ); } } |