diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-02-23 16:15:06 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-02-23 19:19:47 +0100 |
commit | b0073ef79efe65d8094d479faf0c4b657dffbfb0 (patch) | |
tree | 3753942f263d11c6b2ac61596f70baef5ced84f1 | |
parent | a35a29829d1899e441a969de6d1045fd17e4639b (diff) |
drawingML import: reduce code duplication
Change-Id: I7730fb047a10f270498bbf6f1a89dde034514121
-rw-r--r-- | include/oox/drawingml/textspacing.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oox/drawingml/textspacing.hxx b/include/oox/drawingml/textspacing.hxx index e36ca727b6ad..4c859d706057 100644 --- a/include/oox/drawingml/textspacing.hxx +++ b/include/oox/drawingml/textspacing.hxx @@ -24,6 +24,7 @@ #include <com/sun/star/style/LineSpacing.hpp> #include <com/sun/star/style/LineSpacingMode.hpp> +#include <oox/drawingml/drawingmltypes.hxx> namespace oox { namespace drawingml { @@ -53,7 +54,7 @@ namespace oox { namespace drawingml { sal_Int32 toMargin( float fFontSize ) const { if ( nUnit == PERCENT ) - return (sal_Int32) ((((fFontSize*nValue)/1000)*254 + 360)/720); + return GetTextSpacingPoint(static_cast<sal_Int32>((fFontSize*nValue)/1000)); else return nValue; } |