mirror of https://github.com/odrling/Aegisub
Implement TransferToWindow in DoubleValidator. Closes #1606.
This commit is contained in:
parent
9174650c1e
commit
ec07db2615
|
@ -342,7 +342,11 @@ namespace Automation4 {
|
|||
DoubleValidator(double *value) : value(value) { }
|
||||
wxValidator *Clone() const { return new DoubleValidator(value); }
|
||||
bool Validate(wxWindow*) { return true; }
|
||||
bool TransferToWindow() { return true; }
|
||||
|
||||
bool TransferToWindow() {
|
||||
static_cast<wxSpinCtrlDouble*>(GetWindow())->SetValue(*value);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TransferFromWindow()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue