diff options
author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-25 08:44:38 -0400 |
---|---|---|
committer | Rye Mutt <rye@alchemyviewer.org> | 2024-07-25 08:45:53 -0400 |
commit | 7bb62fff08942db95805de454b43d006ca47428b (patch) | |
tree | c91d4184295feb92de63946b0f064074da53071e /indra/newview/llviewermenu.cpp | |
parent | 6b20d98aaac093e043c6e23fbcf6d4e1f62d13ba (diff) |
Fix precommit whitespace failure
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 888b607bfb..cd0b3dbd0c 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -377,17 +377,17 @@ void LLMenuParcelObserver::changed() LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); if (gMenuLand && parcel) { - if (!mLandBuyPassHandle.isDead()) - { - LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); - static_cast<LLMenuItemCallGL*>(mLandBuyPassHandle.get())->setEnabled(LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID() == gAgent.getID())); - } - - if (!mLandBuyHandle.isDead()) - { - bool buyable = enable_buy_land(NULL); - static_cast<LLMenuItemCallGL*>(mLandBuyHandle.get())->setEnabled(buyable); - } + if (!mLandBuyPassHandle.isDead()) + { + LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel(); + static_cast<LLMenuItemCallGL*>(mLandBuyPassHandle.get())->setEnabled(LLPanelLandGeneral::enableBuyPass(NULL) && !(parcel->getOwnerID() == gAgent.getID())); + } + + if (!mLandBuyHandle.isDead()) + { + bool buyable = enable_buy_land(NULL); + static_cast<LLMenuItemCallGL*>(mLandBuyHandle.get())->setEnabled(buyable); + } } } |