diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-01-24 15:25:36 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-01-25 12:57:32 +0100 |
commit | d91236ad8fc74e1ec15c39b90660717ebab013ac (patch) | |
tree | 953d4e1729b6ba729e6e91bf62378934ae0a7d67 /sw/source/filter/inc | |
parent | da7c0245bf0fd6cca7a589f7cf7e0b39412aa577 (diff) |
tdf#115180: take table base width into account
Change-Id: I4238e6c757499e289193efa3498fb1e68d5f3e9c
Reviewed-on: https://gerrit.libreoffice.org/48501
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r-- | sw/source/filter/inc/wrtswtbl.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/filter/inc/wrtswtbl.hxx b/sw/source/filter/inc/wrtswtbl.hxx index ee1cbd771537..20b9554c582a 100644 --- a/sw/source/filter/inc/wrtswtbl.hxx +++ b/sw/source/filter/inc/wrtswtbl.hxx @@ -286,6 +286,7 @@ public: long GetAbsHeight(long nRawWidth, size_t nRow, sal_uInt16 nRowSpan) const; + double GetAbsWidthRatio() const { return m_nTabWidth == m_nBaseWidth ? 1.0 : double(m_nTabWidth) / m_nBaseWidth; } protected: long GetLineHeight( const SwTableLine *pLine ); static long GetLineHeight( const SwTableBox *pBox ); |