[Libreoffice-commits] core.git: sw/source
Marco Cecchetti (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 6 09:40:05 UTC 2020
sw/source/uibase/uiview/view2.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit baadefe9cb8e6745493b0c383e1d66ff3905d153
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
AuthorDate: Sun Oct 20 18:28:07 2019 +0200
Commit: Marco Cecchetti <marco.cecchetti at collabora.com>
CommitDate: Fri Mar 6 10:39:26 2020 +0100
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 at collabora.com>
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 );
}
}
More information about the Libreoffice-commits
mailing list