sw/source/core/edit/edfcol.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit fcb532e730d9f2d4d1a70a33797f60186c651a61 Author: Szymon KÅos <szymon.k...@collabora.com> Date: Tue Oct 31 10:08:28 2017 +0100
Watermark: set Auto size Change-Id: I8800094387ec5fdc49e21c7c02bfc419f13998ed Reviewed-on: https://gerrit.libreoffice.org/44104 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Szymon KÅos <szymon.k...@collabora.com> diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 457fb80a01b8..d6ee2c0f8af0 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -89,6 +89,7 @@ #include <com/sun/star/beans/PropertyAttribute.hpp> #define WATERMARK_NAME "PowerPlusWaterMarkObject" +#define WATERMARK_AUTO_SIZE sal_uInt32(1) namespace { @@ -1294,6 +1295,7 @@ void lcl_placeWatermarkInHeader(const SfxWatermarkItem& rWatermark, xPropertySet->setPropertyValue(UNO_NAME_TEXT_WRAP, uno::makeAny(text::WrapTextMode_THROUGH)); xPropertySet->setPropertyValue(UNO_NAME_VERT_ORIENT_RELATION, uno::makeAny(static_cast<sal_Int16>(text::RelOrientation::PAGE_PRINT_AREA))); xPropertySet->setPropertyValue(UNO_NAME_CHAR_FONT_NAME, uno::makeAny(sFont)); + xPropertySet->setPropertyValue(UNO_NAME_CHAR_HEIGHT, uno::makeAny(WATERMARK_AUTO_SIZE)); xPropertySet->setPropertyValue("Transformation", uno::makeAny(aMatrix)); xPropertySet->setPropertyValue(UNO_NAME_HORI_ORIENT, uno::makeAny(static_cast<sal_Int16>(text::HoriOrientation::CENTER))); xPropertySet->setPropertyValue(UNO_NAME_VERT_ORIENT, uno::makeAny(static_cast<sal_Int16>(text::VertOrientation::CENTER)));
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits