diff --git a/src/control/tools/EditSelection.cpp b/src/control/tools/EditSelection.cpp index 4fef20b8..2332c662 100644 --- a/src/control/tools/EditSelection.cpp +++ b/src/control/tools/EditSelection.cpp @@ -163,7 +163,7 @@ void EditSelection::finalizeSelection() { XOJ_CHECK_TYPE(EditSelection); - XojPageView* v = getBestMatchingPageView(); + XojPageView* v = getPageViewUnderCursor(); if (v == NULL) { // Not on any page - move back to original page and position this->x = this->contents->getOriginalX(); @@ -546,7 +546,7 @@ void EditSelection::mouseMove(double x, double y) this->view->getXournal()->repaintSelection(); - XojPageView* v = getBestMatchingPageView(); + XojPageView* v = getPageViewUnderCursor(); if (v && v != this->view) { @@ -559,7 +559,7 @@ void EditSelection::mouseMove(double x, double y) } } -XojPageView* EditSelection::getBestMatchingPageView() +XojPageView* EditSelection::getPageViewUnderCursor() { XOJ_CHECK_TYPE(EditSelection); diff --git a/src/control/tools/EditSelection.h b/src/control/tools/EditSelection.h index 67413e2f..af7cfe90 100644 --- a/src/control/tools/EditSelection.h +++ b/src/control/tools/EditSelection.h @@ -219,9 +219,9 @@ private: void finalizeSelection(); /** - * Gets the PageView where the selection is located on + * Gets the PageView under the cursor */ - XojPageView* getBestMatchingPageView(); + XojPageView* getPageViewUnderCursor(); /** * Translate all coordinates which are relative to the current view to the new view,