selectPageOrView() moved to CanvasBase
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 23 Feb 2015 18:38:49 -0800
changeset 17 d0b0ea368ce9
parent 16 18267210c228
child 18 0be066f6bb5b
selectPageOrView() moved to CanvasBase
mainwindow.cpp
--- a/mainwindow.cpp	Sun Feb 23 21:23:50 2014 -0800
+++ b/mainwindow.cpp	Mon Feb 23 18:38:49 2015 -0800
@@ -160,10 +160,10 @@
             break;
         case EJumpTo:
         {
-            int page = PageSelector::selectPageOrView(iDoc, -1, iPageNo, 240, this->width(), this->height());
+            int page = CanvasBase::selectPageOrView(iDoc, -1, iPageNo, 240, this->width(), this->height());
             if (page >= 0)
             {
-                int view = PageSelector::selectPageOrView(iDoc, page, (page == iPageNo) ? iViewNo : 0, 240, this->width(),this->height());
+                int view = CanvasBase::selectPageOrView(iDoc, page, (page == iPageNo) ? iViewNo : 0, 240, this->width(),this->height());
                 if (view >= 0)
                 {
                     iPageNo = page;