summaryrefslogtreecommitdiff
path: root/LibGUI/GSpinBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GSpinBox.cpp')
-rw-r--r--LibGUI/GSpinBox.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/LibGUI/GSpinBox.cpp b/LibGUI/GSpinBox.cpp
index f7a6d4b38d..774878c9dd 100644
--- a/LibGUI/GSpinBox.cpp
+++ b/LibGUI/GSpinBox.cpp
@@ -6,6 +6,7 @@ GSpinBox::GSpinBox(GWidget* parent)
: GWidget(parent)
{
m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this);
+ m_editor->set_text("0");
m_editor->on_change = [this] {
bool ok;
int value = m_editor->text().to_uint(ok);