[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : gerry
Repository : xara
Revision : 782
Date : Thu Apr 6 11:17:41 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/camview.cpp
Temporary fix for close document crash
Diff:
Index: Trunk/XaraLX/wxOil/camview.cpp
===================================================================
--- Trunk/XaraLX/wxOil/camview.cpp (revision 781)
+++ Trunk/XaraLX/wxOil/camview.cpp (revision 782)
@@ -1402,6 +1402,8 @@
void CCamView::OnActivateView( bool bActivate, wxView* pActiveView, wxView* pDeactiveView )
{
+// TRACEUSER("Gerry", _T("ScreenView::OnActivateView - %s
"), bActivate ? _T("true") : _T("false"));
+
if ( !pDocView )
{
TRACE( _T("ScreenView::OnActivateView - Warning: pDocView uninitialised
") );
@@ -1431,6 +1433,14 @@
// View, Document, and spread, to legal values.
Document::SetSelectedViewAndSpread(KernelDoc, pDocView, NULL);
}
+ else
+ {
+// TRACEUSER("Gerry", _T("Deactivating the view
"));
+
+ // Lets just try setting no selected for the time being
+ PORTNOTE("other", "CCamView::OnActivateView(false) now setting no selected doc and view")
+ Document::SetNoSelectedViewAndSpread();
+ }
}
Xara