Code

Avoid crash by uninitialized perspectives.
[inkscape.git] / src / layer-manager.h
index bbd5ccafbf40dfd63fc41182d0205ba0a0fa01ce..81f75e002aef5144ef16cbc8937a5a3d27b7ccb2 100644 (file)
@@ -17,7 +17,7 @@
 #include <map>
 
 class SPDesktop;
-class Document;
+class SPDocument;
 
 namespace Inkscape {
 
@@ -44,7 +44,7 @@ private:
     class LayerWatcher;
 
     void _objectModified( SPObject* obj, guint flags );
-    void _setDocument(Document *document);
+    void _setDocument(SPDocument *document);
     void _rebuild();
     void _selectedLayerChanged(SPObject *layer);
 
@@ -53,7 +53,7 @@ private:
     sigc::connection _resource_connection;
 
     GC::soft_ptr<SPDesktop> _desktop;
-    Document *_document;
+    SPDocument *_document;
 
     std::vector<LayerWatcher*> _watchers;