[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1364
Date       : Sun Jun 25 20:49:27 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/printprg.cpp

Use view, not docview, for saving the current view


Diff:
Index: Trunk/XaraLX/wxOil/printprg.cpp
===================================================================
--- Trunk/XaraLX/wxOil/printprg.cpp	(revision 1363)
+++ Trunk/XaraLX/wxOil/printprg.cpp	(revision 1364)
@@ -473,11 +473,11 @@
 	pPrintProgressDlg->PaintGadgetNow(0);
 
 	// Save current doc view etc. around yield as paint can destroy them.
-	DocView * pCurrentDocView = DocView::GetCurrent();
+	View * pCurrentView = View::GetCurrent();
 	Document * pCurrentDocument = Document::GetCurrent();
 	::wxSafeYield(pPrintProgressDlg->WindowID, TRUE);
 	pCurrentDocument->SetCurrent();
-	pCurrentDocView->SetCurrent();
+	pCurrentView->SetCurrent();
 
 	return Aborted;
 }


Xara