diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-25 12:31:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-25 12:34:55 +0100 |
commit | 4c3a16be845abf4037fab028148423c18a964056 (patch) | |
tree | 2f6703cf2eadf07e25cd794951a8f50fe4d0562e /sw/source/ui/misc/redlndlg.cxx | |
parent | 575d8a89262280d361b87ba23ad563ab9e50db78 (diff) |
cppcheck: move this pView test to where it makes sense
Change-Id: I5e6109e0a844808e612c84e49c7c82dc9720badf
Diffstat (limited to 'sw/source/ui/misc/redlndlg.cxx')
-rw-r--r-- | sw/source/ui/misc/redlndlg.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx index 937147ca0753..983b36be82ba 100644 --- a/sw/source/ui/misc/redlndlg.cxx +++ b/sw/source/ui/misc/redlndlg.cxx @@ -397,13 +397,14 @@ void SwRedlineAcceptDlg::Activate() return; SwView *pView = ::GetActiveView(); - SwWait aWait( *pView->GetDocShell(), sal_False ); - - aUsedSeqNo.clear(); if (!pView) // can happen when switching to another app, when a Listbox in the dialog return; // had the focus previously (actually THs Bug) + SwWait aWait( *pView->GetDocShell(), sal_False ); + + aUsedSeqNo.clear(); + // did something change? SwWrtShell* pSh = pView->GetWrtShellPtr(); sal_uInt16 nCount = pSh->GetRedlineCount(); |