Fix displaying landmark and search info properly with long names

avinationmerge
Melanie 2012-01-30 22:30:02 +01:00
parent cfe924e4a8
commit 0f181fe5d0
1 changed files with 4 additions and 1 deletions

View File

@ -2766,7 +2766,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
reply.Data.ParcelID = parcelID;
reply.Data.OwnerID = land.OwnerID;
reply.Data.Name = Utils.StringToBytes(land.Name);
if (land != null && land.Description != null && land.Description != String.Empty)
reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length));
else
reply.Data.Desc = new Byte[0];
reply.Data.ActualArea = land.Area;
reply.Data.BillableArea = land.Area; // TODO: what is this?