diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-21 12:20:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-21 14:34:53 +0100 |
commit | b2aa15ed6e989c50402e3914bffbc1a352e127de (patch) | |
tree | afeb0e1db4c7b960d011761d4dda8a6c6ea88d04 /sw | |
parent | 148ad4cd0981e8352023f574884340ce81730d7b (diff) |
implement IsTableRightToLeft the same as IsTableVertical
Change-Id: I56ab1e9766f53bf8445f8c0ecab4682fcd24b7ec
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index d38147bdc0ff..f5af05b5825f 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -2373,10 +2373,10 @@ bool SwFEShell::GetAutoSum( OUString& rFormula ) const bool SwFEShell::IsTableRightToLeft() const { SwFrame *pFrame = GetCurrFrame(); - if( !pFrame || !pFrame->IsInTab() ) + SwTabFrame *pTab = (pFrame && pFrame->IsInTab()) ? pFrame->ImplFindTabFrame() : nullptr; + if (!pTab) return false; - - return pFrame->ImplFindTabFrame()->IsRightToLeft(); + return pTab->IsRightToLeft(); } bool SwFEShell::IsMouseTableRightToLeft(const Point &rPt) const |