summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltexturectrl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp
index 29891ba235..a746744e53 100644
--- a/indra/newview/lltexturectrl.cpp
+++ b/indra/newview/lltexturectrl.cpp
@@ -282,7 +282,8 @@ bool LLFloaterTexturePicker::updateImageStats()
S32 height = mTexturep->getFullHeight();
if (width > 0 && height > 0)
{
- if (width < mMinDim
+ if (width != height
+ || width < mMinDim
|| width > mMaxDim
|| height < mMinDim
|| height > mMaxDim