summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-03 11:21:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-03 16:53:07 +0100
commit949d7b670cda798c54de072ba9d8f0aabe8afd8c (patch)
treec2ee5fcda9f72f53f686668890c4b07400f4afd5 /writerfilter/source
parente3308af401013713bbfe27b6df9952586c52f4aa (diff)
RTF filter: handle horizontal flip of picture frames
Only shapes were handled previously. Change-Id: Ie03947d7ae065729ef85addddb1ede32637622f2 Reviewed-on: https://gerrit.libreoffice.org/49178 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/rtftok/rtfsdrimport.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx
index 89b587012ff3..6f712d9a75c0 100644
--- a/writerfilter/source/rtftok/rtfsdrimport.cxx
+++ b/writerfilter/source/rtftok/rtfsdrimport.cxx
@@ -890,6 +890,13 @@ void RTFSdrImport::resolve(RTFShape& rShape, bool bClose, ShapeOrPict const shap
{
m_xShape = xShape; // store it for later resolvePict call
}
+
+ // Handle horizontal flip.
+ if (obFlipH == true)
+ {
+ if (xPropertySet.is())
+ xPropertySet->setPropertyValue("IsMirrored", uno::makeAny(true));
+ }
return;
}