Fixed setting of font size on the style editor

Originally committed to SVN as r380.
This commit is contained in:
Rodrigo Braz Monteiro 2006-05-09 01:22:42 +00:00
parent 0bca7e0c2e
commit 3a260cf0ce
3 changed files with 4 additions and 3 deletions

View File

@ -402,7 +402,6 @@ void DialogStyleEditor::Apply (bool apply,bool close) {
// Font and its size
work->font = FontName->GetValue();
FontSize->GetValue().ToDouble(&(work->fontsize));
work->fontsize = templ;
// Style name
work->name = StyleName->GetValue();

View File

@ -41,7 +41,7 @@
///////////////
// Constructor
NumValidator::NumValidator(wxString* valPtr)
NumValidator::NumValidator(wxString* valPtr,bool isfloat,bool issigned)
: wxTextValidator(wxFILTER_INCLUDE_CHAR_LIST,valPtr)
{
wxArrayString list;
@ -55,5 +55,7 @@ NumValidator::NumValidator(wxString* valPtr)
list.Add(_T("7"));
list.Add(_T("8"));
list.Add(_T("9"));
if (isfloat) list.Add(_T("."));
if (issigned) list.Add(_T("-"));
SetIncludes(list);
}

View File

@ -47,7 +47,7 @@
// Numeric validator
class NumValidator : public wxTextValidator {
public:
NumValidator(wxString* valPtr = NULL);
NumValidator(wxString* valPtr = NULL,bool isfloat=false,bool issigned=false);
};