Fixed the colour box on the colour pick dialogue.

Originally committed to SVN as r674.
This commit is contained in:
Rodrigo Braz Monteiro 2007-01-01 22:56:16 +00:00
parent 57451272ff
commit 17d2ba4f1d
2 changed files with 10 additions and 9 deletions

View File

@ -789,14 +789,15 @@ void DialogColorPicker::UpdateSpectrumDisplay()
}
spectrum_dirty = false;
wxMemoryDC previewdc;
previewdc.SelectObject(preview_bitmap);
previewdc.SetPen(*wxTRANSPARENT_PEN);
wxBrush brush(previewdc.GetBrush());
brush.SetColour(cur_color);
previewdc.SetBrush(brush);
previewdc.DrawRectangle(0, 0, 40, 40);
preview_box->Refresh(false);
wxBitmap tempBmp = preview_box->GetBitmap();
{
wxMemoryDC previewdc;
previewdc.SelectObject(tempBmp);
previewdc.SetPen(*wxTRANSPARENT_PEN);
previewdc.SetBrush(wxBrush(cur_color));
previewdc.DrawRectangle(0, 0, 40, 40);
}
preview_box->SetBitmap(tempBmp);
}

View File

@ -121,7 +121,7 @@ SubsTextEditCtrl::SubsTextEditCtrl(wxWindow* parent, wxWindowID id, const wxStri
thesaurus = Thesaurus::GetThesaurus();
// Delimiters
delim = _T(" .,;:!?에(){}[]\"/\\");
delim = _T(" .,;:!?에-(){}[]\"/\\");
}