From 711ccfa57f5feb526bea6d3cea8d41a7079179b0 Mon Sep 17 00:00:00 2001
From: Aimee Linden <aimee@lindenlab.com>
Date: Wed, 1 Sep 2010 15:05:24 +0100
Subject: [PATCH] VWR-13221 (SNOW-188) SUPPLEMENTARY Allow panning of the
 minimap

Fix Linux build.
---
 indra/newview/llnetmap.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp
index 031656f7f8..6db8001d57 100644
--- a/indra/newview/llnetmap.cpp
+++ b/indra/newview/llnetmap.cpp
@@ -269,7 +269,7 @@ void LLNetMap::draw()
 			new_center.mV[VX] -= mCurPan.mV[VX];
 			new_center.mV[VY] -= mCurPan.mV[VY];
 			new_center.mV[VZ] = 0.f;
-			mObjectImageCenterGlobal = viewPosToGlobal(new_center.mV[VX], new_center.mV[VY]);
+			mObjectImageCenterGlobal = viewPosToGlobal(llfloor(new_center.mV[VX]), llfloor(new_center.mV[VY]));
 
 			// Create the base texture.
 			U8 *default_texture = mObjectRawImagep->getData();
-- 
GitLab