summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2023-07-27 13:30:09 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2023-07-27 13:30:09 +0300
commit1cf4a2c95210ba94c330710e0a98f762bf54c605 (patch)
tree3f23d1a6f17d3261dcceda63fe354dc7406379b2 /indra/newview
parentb267515922f6bca9034810ab7f18626f39cec356 (diff)
SL-20080 Show warning message when selecting a non square texture for thumbnails
Diffstat (limited to 'indra/newview')
-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