[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Jul 25 04:36:40 PDT 2012
sw/source/ui/misc/redlndlg.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 4c3a16be845abf4037fab028148423c18a964056
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jul 25 12:31:46 2012 +0100
cppcheck: move this pView test to where it makes sense
Change-Id: I5e6109e0a844808e612c84e49c7c82dc9720badf
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index 937147c..983b36b 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();
More information about the Libreoffice-commits
mailing list