diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 17:00:19 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:36 +0100 |
commit | 9ba21f6bf1fc369f41eb9454ec9df499159d783e (patch) | |
tree | 844cef755d1fa55ce0fb51a4f76e4dc120854019 | |
parent | 63d47cd94df138d0f76961c8e370269e75d95745 (diff) |
flatten and simplify
Change-Id: I0ef8e47de4b0f135b5e789f93efce2de1daac99a
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 771a524fe76f..f136f106128d 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1603,16 +1603,15 @@ sal_Bool SwXTextTableCursor::goDown(sal_Int16 Count, sal_Bool bExpand) throw( un return rTblCrsr.UpDown(false, Count, 0, 0); } -void SwXTextTableCursor::gotoStart(sal_Bool Expand) throw( uno::RuntimeException, std::exception ) +void SwXTextTableCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeException, std::exception ) { SolarMutexGuard aGuard; SwUnoCrsr* pUnoCrsr = GetCrsr(); - if(pUnoCrsr) - { - SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); - lcl_CrsrSelect(rTblCrsr, Expand); - rTblCrsr.MoveTable(fnTableCurr, fnTableStart); - } + if(!pUnoCrsr) + return; + SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr); + lcl_CrsrSelect(rTblCrsr, bExpand); + rTblCrsr.MoveTable(fnTableCurr, fnTableStart); } void SwXTextTableCursor::gotoEnd(sal_Bool Expand) throw( uno::RuntimeException, std::exception ) |