diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-05-20 16:20:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-05-20 16:44:29 +0200 |
commit | 68bc8af6b6c4d0399bd10ed450d81aa2f17931a1 (patch) | |
tree | f3fde30fe52bccf4932cf932b2ed0543d54f72cc /include/svx | |
parent | 35199df7b7af9d9dd3e98eb5f1b24ac1d407345c (diff) |
SvxRelativeField: set the unit from the passed stringmap
In the Paragraph "Indents & Spacing" tab there are fields with unit:
<object class="svxlo-SvxRelativeField" id="spinED_LEFTINDENT:0cm">
But the unit is effectively ignored, and the resulting SvxRelativeField
with FUNIT_NONE and 9999 max somehow results in 0.18cm max when the
dialog sets cm as unit.
Change-Id: I6001c93079fd7d899f1e119913b29ea4898b1c34
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/relfld.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/relfld.hxx b/include/svx/relfld.hxx index 9b9d72619f27..91fb36d6d709 100644 --- a/include/svx/relfld.hxx +++ b/include/svx/relfld.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_SVX_RELFLD_HXX #define INCLUDED_SVX_RELFLD_HXX +#include <tools/fldunit.hxx> #include <vcl/field.hxx> #include <svx/svxdllapi.h> @@ -39,7 +40,7 @@ protected: void Modify() SAL_OVERRIDE; public: - SvxRelativeField( Window* pParent, WinBits nBits); + SvxRelativeField(Window* pParent, WinBits nBits, FieldUnit eUnit); void EnableRelativeMode( sal_uInt16 nMin = 50, sal_uInt16 nMax = 150, sal_uInt16 nStep = 5 ); |