mirror of https://github.com/odrling/Aegisub
Set the subs box's style and size correctly
Originally committed to SVN as r5672.
This commit is contained in:
parent
9ad1434f37
commit
9b9482b96f
|
@ -39,8 +39,8 @@
|
|||
#include "scintilla_text_ctrl.h"
|
||||
#include "utils.h"
|
||||
|
||||
ScintillaTextCtrl::ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size)
|
||||
: wxStyledTextCtrl(parent, id, pos, size, 0, value)
|
||||
ScintillaTextCtrl::ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style)
|
||||
: wxStyledTextCtrl(parent, id, pos, size, style, value)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -55,5 +55,5 @@ public:
|
|||
void SetUnicodeStyling(int start,int length,int style);
|
||||
void SetSelectionU(int start,int end);
|
||||
|
||||
ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
|
||||
ScintillaTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);
|
||||
};
|
||||
|
|
|
@ -76,7 +76,7 @@ enum {
|
|||
};
|
||||
|
||||
SubsTextEditCtrl::SubsTextEditCtrl(wxWindow* parent, wxSize wsize, long style, SubtitlesGrid *grid)
|
||||
: ScintillaTextCtrl(parent, wxID_ANY)
|
||||
: ScintillaTextCtrl(parent, -1, "", wxDefaultPosition, wsize, style)
|
||||
, spellchecker(SpellCheckerFactory::GetSpellChecker())
|
||||
, thesaurus(Thesaurus::GetThesaurus())
|
||||
, grid(grid)
|
||||
|
|
Loading…
Reference in New Issue