renamed getBestMatchingPageView to getPageViewUnderCursor to reflect new operation.

presentation
JJones780 7 years ago
parent bb834b9dee
commit 313285c70c
  1. 6
      src/control/tools/EditSelection.cpp
  2. 4
      src/control/tools/EditSelection.h

@ -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);

@ -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,

Loading…
Cancel
Save