src/glRenderer.cc

changeset 784
f82ab4d3c7b4
parent 772
e117509e1b51
child 786
71d786ce0dcc
--- a/src/glRenderer.cc	Sun Jun 01 03:15:36 2014 +0300
+++ b/src/glRenderer.cc	Mon Jun 02 12:50:40 2014 +0300
@@ -119,7 +119,6 @@
 	m_rectdraw = false;
 	m_panning = false;
 	m_compiler = new GLCompiler (this);
-	setDocument (null);
 	setDrawOnly (false);
 	setMessageLog (null);
 	m_width = m_height = -1;
@@ -1371,7 +1370,7 @@
 
 // =============================================================================
 //
-void GLRenderer::setDocument (LDDocument* const& a)
+void GLRenderer::setDocument (LDDocumentPtr const& a)
 {
 	m_document = a;
 
@@ -1500,7 +1499,7 @@
 			const int segs = g_lores, divs = g_lores; // TODO: make customizable
 			double dist0 = getCircleDrawDist (0),
 				dist1 = getCircleDrawDist (1);
-			LDDocument* refFile = null;
+			LDDocumentPtr refFile;
 			Matrix transform;
 			bool circleOrDisc = false;
 

mercurial