diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-06-16 14:54:35 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-06-22 15:34:00 +0200 |
commit | e5a9450eef1bcd52b84b9a9d81d6ff430a992f23 (patch) | |
tree | 09c76e3937f707f7c4323e01b7076848f1b16592 /writerfilter/source | |
parent | fix expat's MD5 sum (diff) | |
download | core-e5a9450eef1bcd52b84b9a9d81d6ff430a992f23.tar.gz core-e5a9450eef1bcd52b84b9a9d81d6ff430a992f23.zip |
Watermark: auto size in the RTF
When Watermark size is set to Auto in the MSO,
the saved value is equal 1pt. Before this patch
in this case Watermark was invisible due to small size.
Change-Id: Ia2028a6547cf98dd31031305bcc5375625b83fe0
Reviewed-on: https://gerrit.libreoffice.org/38883
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerfilter/source')
-rw-r--r-- | writerfilter/source/rtftok/rtfsdrimport.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfsdrimport.cxx b/writerfilter/source/rtftok/rtfsdrimport.cxx index 093bbb13f5c1..9668b473fea0 100644 --- a/writerfilter/source/rtftok/rtfsdrimport.cxx +++ b/writerfilter/source/rtftok/rtfsdrimport.cxx @@ -919,6 +919,8 @@ void RTFSdrImport::resolve(RTFShape& rShape, bool bClose, ShapeOrPict const shap it->Value <<= aPropertyValues; xPropertySet->setPropertyValue("CustomShapeGeometry", uno::makeAny(comphelper::containerToSequence(aGeomPropVec))); + xPropertySet->setPropertyValue("TextAutoGrowHeight", uno::makeAny(false)); + xPropertySet->setPropertyValue("TextAutoGrowWidth", uno::makeAny(false)); } if (!boost::logic::indeterminate(obRelFlipV) && xPropertySet.is()) |