summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterprofiletexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterprofiletexture.cpp')
-rw-r--r--indra/newview/llfloaterprofiletexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloaterprofiletexture.cpp b/indra/newview/llfloaterprofiletexture.cpp
index 47b3aa015b..8cb941cb12 100644
--- a/indra/newview/llfloaterprofiletexture.cpp
+++ b/indra/newview/llfloaterprofiletexture.cpp
@@ -244,8 +244,8 @@ void LLFloaterProfileTexture::updateDimensions()
if (biggest_dim > MAX_DIMENTIONS)
{
F32 scale_down = MAX_DIMENTIONS / (F32)biggest_dim;
- width *= scale_down;
- height *= scale_down;
+ width = (S32)(width * scale_down);
+ height = (S32)(height * scale_down);
}
//reshape floater