summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 13:31:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-20 13:31:38 +0100
commit10d39960ad03f729aedbca0c50367f48d51f1304 (patch)
tree68e0de9b0d99efe04729334eeaa374343c022ce3 /svx/source
parenta1b0d3ff53c9cd4299a2372d72eb9eba1fe48e80 (diff)
nBestDist should apparently be updated
missing ever since fd069bee7e57ad529c3c0974559fd2d84ec3151a "initial import" Change-Id: If3271b253fbd5c9deda5b0ab8b9e20af6ab2be1b
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdmrkv.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index c7c882c19f20..4d97d6613cb9 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1905,6 +1905,7 @@ bool SdrMarkView::PickMarkedObj(const Point& rPnt, SdrObject*& rpObj, SdrPageVie
if (aPt.Y()<aRect.Top()) nDist+=aRect.Top()-aPt.Y();
if (aPt.Y()>aRect.Bottom()) nDist+=aPt.Y()-aRect.Bottom();
if (nDist<nBestDist) {
+ nBestDist = nDist;
pBestObj=pObj;
pBestPV=pPV;
}