diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2021-12-09 15:55:16 +0100 |
---|---|---|
committer | Gabor Kelemen <kelemeng@ubuntu.com> | 2021-12-17 17:33:49 +0100 |
commit | 30f6ad6a617e7b9aa86f774e8b6da9c4ae8ad9f4 (patch) | |
tree | 7eaf08e87151952aaf70710c64cb6e5ce8a9b969 /sd | |
parent | a214369f14d3f53d45b1889827057882c0ffd62e (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>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/strings.hrc | 1 | ||||
-rw-r--r-- | sd/source/ui/func/fuinsert.cxx | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/sd/inc/strings.hrc b/sd/inc/strings.hrc index c5643c8bfe0e..68be404dfaf9 100644 --- a/sd/inc/strings.hrc +++ b/sd/inc/strings.hrc @@ -31,7 +31,6 @@ #define STR_UNDO_REPLACE NC_("STR_UNDO_REPLACE", "Replace") #define STR_UNDO_DRAGDROP NC_("STR_UNDO_DRAGDROP", "Drag and Drop") #define STR_INSERTGRAPHIC NC_("STR_INSERTGRAPHIC", "Insert Image") -#define STR_QUERYROTATION NC_("STR_QUERYROTATION", "This image is rotated. Would you like to rotate it into standard orientation?") #define STR_UNDO_BEZCLOSE NC_("STR_UNDO_BEZCLOSE", "Close Polygon") #define STR_SLIDE_SORTER_MODE NC_("STR_SLIDE_SORTER_MODE", "Slide Sorter") #define STR_NORMAL_MODE NC_("STR_NORMAL_MODE", "Normal") diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index 4fa9db0b46ed..61f61b70b3cc 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -147,14 +147,8 @@ void FuInsertGraphic::DoExecute( SfxRequest& rReq ) const Degree10 aRotation = aMetadata.getRotation(); if (aRotation) { - std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(nullptr, VclMessageType::Question,VclButtonsType::YesNo,SdResId(STR_QUERYROTATION))); - // 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 ); } } if( dynamic_cast< DrawViewShell *>( mpViewShell ) ) |