summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/redlndlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-25 12:31:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-25 12:34:55 +0100
commit4c3a16be845abf4037fab028148423c18a964056 (patch)
tree2f6703cf2eadf07e25cd794951a8f50fe4d0562e /sw/source/ui/misc/redlndlg.cxx
parent575d8a89262280d361b87ba23ad563ab9e50db78 (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.cxx7
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();