Skip to content

Commit

Permalink
fix to previous edit color update
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/ucblogo/code@205 fc4ef4ee-df3e-0410-84de-fb01f5d6c4f7
  • Loading branch information
chou86_e committed Sep 14, 2008
1 parent da6893b commit 665d533
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ void TextEditor::SetFont(wxFont font){
}

void TextEditor::SetThisFont(wxCommandEvent& event) {
SetDefaultStyle(wxTextAttr(wxNullColour,wxNullColour, this->font));
SetDefaultStyle(wxTextAttr(TurtleCanvas::colors[wxTerminal::terminal->m_curFG],
TurtleCanvas::colors[wxTerminal::terminal->m_curBG], this->font));
if(this->IsShown()){
SetStyle(0,GetLastPosition(), wxTextAttr(wxNullColour,wxNullColour,this->font));
SetStyle(0,GetLastPosition(),
wxTextAttr(TurtleCanvas::colors[wxTerminal::terminal->m_curFG],
TurtleCanvas::colors[wxTerminal::terminal->m_curBG],this->font));
Refresh();
Update();
}
Expand Down

0 comments on commit 665d533

Please sign in to comment.