FIRE-15299: Chat font size change does not apply in nearby chat history floater; Also make change instantly visible without the need of emptying the text input

Tue, 30 Dec 2014 21:26:54 +0100

author
Ansariel
date
Tue, 30 Dec 2014 21:26:54 +0100
changeset 43094
02a50237407f
parent 43093
bd4bab7d0868
child 43095
e86e761eca54

FIRE-15299: Chat font size change does not apply in nearby chat history floater; Also make change instantly visible without the need of emptying the text input

indra/newview/fsfloaterim.cpp file | annotate | diff | revisions
indra/newview/fsfloaternearbychat.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/fsfloaterim.cpp	Fri Dec 19 15:58:49 2014 +0100
     1.2 +++ b/indra/newview/fsfloaterim.cpp	Tue Dec 30 21:26:54 2014 +0100
     1.3 @@ -1468,6 +1468,11 @@
     1.4  		{
     1.5  			floater->updateChatHistoryStyle();
     1.6  			floater->mInputEditor->setFont(font);
     1.7 +
     1.8 +			// Re-set the current text to make style update instant
     1.9 +			std::string text = floater->mInputEditor->getText();
    1.10 +			floater->mInputEditor->clear();
    1.11 +			floater->mInputEditor->setText(text);
    1.12  		}
    1.13  	}
    1.14  }
     2.1 --- a/indra/newview/fsfloaternearbychat.cpp	Fri Dec 19 15:58:49 2014 +0100
     2.2 +++ b/indra/newview/fsfloaternearbychat.cpp	Tue Dec 30 21:26:54 2014 +0100
     2.3 @@ -495,6 +495,12 @@
     2.4  	if (nearby_chat)
     2.5  	{
     2.6  		nearby_chat->updateChatHistoryStyle();
     2.7 +		nearby_chat->mInputEditor->setFont(LLViewerChat::getChatFont());
     2.8 +
     2.9 +		// Re-set the current text to make style update instant
    2.10 +		std::string text = nearby_chat->mInputEditor->getText();
    2.11 +		nearby_chat->mInputEditor->clear();
    2.12 +		nearby_chat->mInputEditor->setText(text);
    2.13  	}
    2.14  }
    2.15  

mercurial