aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupgeneral.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-04-13 17:59:04 -0700
committerMcCabe Maxsted2011-04-13 17:59:04 -0700
commitc58055f30d8ccd594b216f01c56641393b330c14 (patch)
tree9b0c276df8e8b8a54ecbb8b0f33312ce6134d19d /linden/indra/newview/llpanelgroupgeneral.cpp
parentDon't create temporary LLRect objects for spellchecking in every draw either (diff)
downloadmeta-impy-c58055f30d8ccd594b216f01c56641393b330c14.zip
meta-impy-c58055f30d8ccd594b216f01c56641393b330c14.tar.gz
meta-impy-c58055f30d8ccd594b216f01c56641393b330c14.tar.bz2
meta-impy-c58055f30d8ccd594b216f01c56641393b330c14.tar.xz
Ugly workaround for LLStyle issue when parsing textboxes for html while editing them.
This might be fixed in Viewer 2? If not, sadness. Also, added html parsing for picks and classified ads while I was there
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgroupgeneral.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp
index 9aa70f7..8e61c60 100644
--- a/linden/indra/newview/llpanelgroupgeneral.cpp
+++ b/linden/indra/newview/llpanelgroupgeneral.cpp
@@ -814,11 +814,15 @@ void LLPanelGroupGeneral::update(LLGroupChange gc)
814 814
815 if (mEditCharter) 815 if (mEditCharter)
816 { 816 {
817 mEditCharter->setParseHTML(TRUE); 817 if (mAllowEdit && can_change_ident)
818 mEditCharter->appendColoredText(gdatap->mCharter, false, false, 818 {
819 (mAllowEdit && can_change_ident) ? 819 mEditCharter->setText(gdatap->mCharter);
820 gColors.getColor("TextFgColor") : 820 }
821 gColors.getColor("TextFgReadOnlyColor")); 821 else
822 {
823 mEditCharter->setParseHTML(TRUE);
824 mEditCharter->appendColoredText(gdatap->mCharter, false, false, gColors.getColor("TextFgReadOnlyColor"));
825 }
822 mEditCharter->resetDirty(); 826 mEditCharter->resetDirty();
823 } 827 }
824 828