summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2021-12-09 15:55:16 +0100
committerGabor Kelemen <kelemeng@ubuntu.com>2021-12-17 17:33:49 +0100
commit30f6ad6a617e7b9aa86f774e8b6da9c4ae8ad9f4 (patch)
tree7eaf08e87151952aaf70710c64cb6e5ce8a9b969 /sc
parenta214369f14d3f53d45b1889827057882c0ffd62e (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 'sc')
-rw-r--r--sc/inc/strings.hrc1
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx10
2 files changed, 2 insertions, 9 deletions
diff --git a/sc/inc/strings.hrc b/sc/inc/strings.hrc
index 96f4e8c3e0b2..81908559a230 100644
--- a/sc/inc/strings.hrc
+++ b/sc/inc/strings.hrc
@@ -59,7 +59,6 @@
#define SCSTR_NO_TAB_BG_COLOR NC_("SCSTR_NO_TAB_BG_COLOR", "Default")
#define SCSTR_RENAMEOBJECT NC_("SCSTR_RENAMEOBJECT", "Name Object")
#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 SCSTR_TOTAL NNC_("SCSTR_TOTAL", "One result found", "%1 results found")
#define SCSTR_SKIPPED NC_("SCSTR_SKIPPED", "(only %1 are listed)")
// Attribute
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 5c7bac6ce2a6..a447a56c6dca 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -112,14 +112,8 @@ static void lcl_InsertGraphic( const Graphic& rGraphic,
const Degree10 aRotation = aMetadata.getRotation();
if (aRotation)
{
- std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(nullptr, VclMessageType::Question,VclButtonsType::YesNo,ScResId(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( rGraphic1 );
- aTransform.rotate( aRotation );
- }
+ GraphicNativeTransform aTransform( rGraphic1 );
+ aTransform.rotate( aRotation );
}
}
ScDrawView* pDrawView = rViewSh.GetScDrawView();