summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2025-09-09 15:09:59 +0200
committerAndras Timar <andras.timar@collabora.com>2025-09-10 10:23:44 +0200
commit0200a718af66ec1e8d2e41e937aaebcd337a147e (patch)
tree5b335a2e590afae5e173dd74545e669113ac1cbf /sw/source
parentc5f4ff057e78ab69c14423c269e2040a7ec15f78 (diff)
tdf#137833 Always respect EXIF Orientation tag when importing a JPEG
Previously EXIF Orientation tag was read only via the Insert -> Image route. Now it is respected even via File -> Open or drag&drop. Change-Id: I16a79940823f4a62e8df5fa5d7c2e28a755e3460 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190717 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190733 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index bbd0fe4ac382..610bc9d3b7f5 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -136,8 +136,6 @@
#include <vcl/uitest/eventdescription.hxx>
#include <svx/GenericDropDownFieldDialog.hxx>
-#include <vcl/GraphicNativeTransform.hxx>
-#include <vcl/GraphicNativeMetadata.hxx>
#include <vcl/TypeSerializer.hxx>
#include <comphelper/lok.hxx>
#include <sfx2/classificationhelper.hxx>
@@ -427,20 +425,6 @@ namespace
rDest.GetMetaFieldManager().copyDocumentProperties(rSrc);
}
-
- void lclCheckAndPerformRotation(Graphic& aGraphic)
- {
- GraphicNativeMetadata aMetadata;
- if ( !aMetadata.read(aGraphic) )
- return;
-
- Degree10 aRotation = aMetadata.getRotation();
- if (aRotation)
- {
- GraphicNativeTransform aTransform( aGraphic );
- aTransform.rotate( aRotation );
- }
- }
}
sal_Bool SAL_CALL SwTransferable::isComplex()
@@ -2631,9 +2615,6 @@ bool SwTransferable::PasteTargetURL( const TransferableDataHelper& rData,
if( bRet )
{
- //Check and Perform rotation if needed
- lclCheckAndPerformRotation(aGraphic);
-
switch( nAction )
{
case SwPasteSdr::Insert:
@@ -3040,9 +3021,6 @@ bool SwTransferable::PasteGrf( const TransferableDataHelper& rData, SwWrtShell&
if( bRet )
{
- //Check and Perform rotation if needed
- lclCheckAndPerformRotation(aGraphic);
-
OUString sURL;
if( dynamic_cast< const SwWebDocShell *>( rSh.GetView().GetDocShell() ) != nullptr
// #i123922# if link action is noted, also take URL