Lukas Barth's patch for Ipe 7.2.2 default tip
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 01 Feb 2016 11:11:46 -0800
changeset 22 c62a23291b60
parent 21 b714decd7d5b
Lukas Barth's patch for Ipe 7.2.2
canvasview.cpp
mainwindow.cpp
--- a/canvasview.cpp	Mon Jan 04 22:35:58 2016 -0800
+++ b/canvasview.cpp	Mon Feb 01 11:11:46 2016 -0800
@@ -100,8 +100,7 @@
 {
     iDoc = doc;
 
-    // iDoc->page(iPageNo)->setSelect(0, EPrimarySelected);
-    //iCanvas->setFontPool(iDoc->fontPool());
+    iCanvas->setResources(iDoc->resources());
     iCanvas->setPage(iDoc->page(iPageNo), iPageNo, iViewNo, iDoc->cascade());
     iCanvas->setPan(Vector(300, 400));
     static_cast<CanvasBase*>(iCanvas)->update();
--- a/mainwindow.cpp	Mon Jan 04 22:35:58 2016 -0800
+++ b/mainwindow.cpp	Mon Feb 01 11:11:46 2016 -0800
@@ -197,9 +197,8 @@
     iPageNo = 0;
     iViewNo = 0;
 
-    // iDoc->page(iPageNo)->setSelect(0, EPrimarySelected);
-    //currentViewCanvas->setFontPool(iDoc->fontPool());
-    //nextViewCanvas->setFontPool(iDoc->fontPool());
+    currentViewCanvas->setResources(iDoc->resources());
+    nextViewCanvas->setResources(iDoc->resources());
 
     currentViewCanvas->setPage(iDoc->page(iPageNo), iPageNo, iViewNo, iDoc->cascade());
     currentViewCanvas->setPan(Vector(300, 400));