Skip to content

Commit 9ba0dd7

Browse files
uclaroswonder-sk
authored andcommitted
there are 25.4 mm per in
1 parent 38db09f commit 9ba0dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/3d/qgs3dmaptoolidentify.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void Qgs3DMapToolIdentify::mouseReleaseEvent( QMouseEvent *event )
109109
// estimate search radius
110110
Qgs3DMapScene *scene = mCanvas->scene();
111111
const double searchRadiusMM = QgsMapTool::searchRadiusMM();
112-
const double pixelsPerMM = mCanvas->screen()->logicalDotsPerInchX(); // mCanvas->logicalDpiX() / 25.4;
112+
const double pixelsPerMM = mCanvas->screen()->logicalDotsPerInchX() / 25.4;
113113
const double searchRadiusPx = searchRadiusMM * pixelsPerMM;
114114
const double searchRadiusMapUnits = scene->worldSpaceError( searchRadiusPx, hit.distance );
115115

0 commit comments

Comments
 (0)