From 28205df83938aeac350a0ce3e9291f81c7dcafbd Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Thu, 2 Jul 2020 21:58:33 -0400
Subject: [PATCH] Fix small bugs in LLFloater

---
 indra/llui/llfloater.cpp | 5 +++++
 indra/llui/llfloater.h   | 1 +
 2 files changed, 6 insertions(+)

diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index ae8cf305d27..59ec31d9e7e 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -246,6 +246,7 @@ LLFloater::LLFloater(const LLSD& key, const LLFloater::Params& p)
 	mShortTitle(p.short_title),
 	mSingleInstance(p.single_instance),
 	mReuseInstance(p.reuse_instance.isProvided() ? p.reuse_instance : p.single_instance), // reuse single-instance floaters by default
+	mIsReuseInitialized(p.reuse_instance.isProvided()),
 	mKey(key),
 	mCanTearOff(p.can_tear_off),
 	mCanMinimize(p.can_minimize),
@@ -3129,6 +3130,9 @@ void LLFloaterView::setToolbarRect(LLToolBarEnums::EToolBarLocation tb, const LL
 	case LLToolBarEnums::TOOLBAR_RIGHT:
 		mToolbarRightRect = toolbar_rect;
 		break;
+	case LLToolBarEnums::TOOLBAR_TOP:
+		mToolbarTopRect = toolbar_rect;
+		break;
 	default:
 		LL_WARNS() << "setToolbarRect() passed odd toolbar number " << (S32) tb << LL_ENDL;
 		break;
@@ -3224,6 +3228,7 @@ void LLFloater::initFromParams(const LLFloater::Params& p)
 	mLegacyHeaderHeight = p.legacy_header_height;
 	mSingleInstance = p.single_instance;
 	mReuseInstance = p.reuse_instance.isProvided() ? p.reuse_instance : p.single_instance;
+	mIsReuseInitialized = p.reuse_instance.isProvided();
 
 	mPositioning = p.positioning;
 
diff --git a/indra/llui/llfloater.h b/indra/llui/llfloater.h
index 715cada1cb1..8e79418e8de 100644
--- a/indra/llui/llfloater.h
+++ b/indra/llui/llfloater.h
@@ -604,6 +604,7 @@ class LLFloaterView : public LLUICtrl
 	LLRect				mToolbarLeftRect;
 	LLRect				mToolbarBottomRect;
 	LLRect				mToolbarRightRect;
+	LLRect				mToolbarTopRect;
 	LLHandle<LLView>	mSnapView;
 	BOOL			mFocusCycleMode;
 	S32				mSnapOffsetBottom;
-- 
GitLab