sw/source/ui/misc/redlndlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 4c3a16be845abf4037fab028148423c18a964056 Author: Caolán McNamara <caol...@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();
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits