From da68d3a57ecb27eba5d7efb8ff77d9640c0be65e Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:57 -0500 Subject: Second Life viewer sources 1.16.0.5 --- linden/indra/newview/llpreview.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'linden/indra/newview/llpreview.cpp') diff --git a/linden/indra/newview/llpreview.cpp b/linden/indra/newview/llpreview.cpp index 23f31aa..7137f85 100644 --- a/linden/indra/newview/llpreview.cpp +++ b/linden/indra/newview/llpreview.cpp @@ -484,8 +484,11 @@ LLPreview* LLPreview::getFirstPreviewForSource(const LLUUID& source_id) void LLPreview::userSetShape(const LLRect& new_rect) { - userResized(); - LLView::userSetShape(new_rect); + if(new_rect.getWidth() != mRect.getWidth() || new_rect.getHeight() != mRect.getHeight()) + { + userResized(); + } + LLFloater::userSetShape(new_rect); } // @@ -510,9 +513,12 @@ void LLMultiPreview::open() /*Flawfinder: ignore*/ void LLMultiPreview::userSetShape(const LLRect& new_rect) { - LLPreview* frontmost_preview = (LLPreview*)mTabContainer->getCurrentPanel(); - if (frontmost_preview) frontmost_preview->userResized(); - LLView::userSetShape(new_rect); + if(new_rect.getWidth() != mRect.getWidth() || new_rect.getHeight() != mRect.getHeight()) + { + LLPreview* frontmost_preview = (LLPreview*)mTabContainer->getCurrentPanel(); + if (frontmost_preview) frontmost_preview->userResized(); + } + LLFloater::userSetShape(new_rect); } -- cgit v1.1